webcom-components/reach

Data not updated when closing the browser

Opened this issue · 2 comments

Follow these steps : login, create a room and publish a local strem in the room. After you close the browser (don't use the close or leave method).
In the datasync base, you can see that the users is NOT CONNECTED (in users).
But in the room (_/rooms/roomuid/participants/userid), the user status is still CONNECTED. The local stream published previously is still present in streams.

Some improvement with 28f76cb but OnDisconnect Room & Stream actions are still not fired everytime.

A new release of Webcom back-end, that correct the problem is currently being under validation. This release shall be on production soon !

How hever, to improve your web application and to better handle behaviour when closing the browser (without the use of leave or close method) we suggest to add a piece of code that could detect browser closing and could force leave or close method before websocket deconnexion.