hocuspocus
hocuspocus copied to clipboard
Hocuspocus provider awareness bug
Using @hocuspocus/[email protected]
HocuspocusProvider awareness may not be firing update/change event when you destroy the provider.
I'm using a global state to keep track of users in each document, and this global state is updated every time the awareness.on('change', ...) event fires.
- With
WebsocketProviderfromy-websocketI'm correctly notified that (for example) all users, me included, exited the document and I can update the global state accordingly. - With
HocuspocusProviderI'm seeing "myself" multiple times when I open, close, and reopen the same document.
This could be side effect of the reconnect problem in #197 (just pointing out, it may be unrelated or you are just connected multiple times)