yjs/y-websocket

Is beforeunload a correct event for reseting awareness state?

mifopen opened this issue · 3 comments

Shouldn't it be just unload. beforeunload is often used to ask users about unsaved changes. It means that the user will be "disconnected" from the awareness protocol until they choose, for example, "exit without saving", "cancel" or "save".

Huly®: YJS-530

Can you try out whether disconnecting will still work if we do it in the unload event?

Yes, it does work

Thanks for verifying. Added this change and made a release.