On closing Browser or tab, call still shows users is connected

I don’t know if any one noticed that, when we are on call on talk if any participant closes its call tab or even browser, that users still shows as connected.

now what I want is if participant closes tab or browser the participant should leave the call automatically. how can I make it possible need help.

When closing the tab/window we try to leave the call. However browsers don’t wait for ever so if your server/network is too slow, the request will never reach the server.

But the users should then timeout after ~30sec.

Hi,
Thanks for your response,
Can you please tell me witch event i will get when participant disconnects with the said scenario.

Currently I’m not able to get the EVENT_BEFORE_SESSION_LEAVE_CALL event on said scenario.