Zoom doesn't remove the user from session when closes or refreshes browser window

Hi @tommy, We are integrating zoom web sdk into our application and found that zoom doesn’t remove user from session immediately when user refreshes or closes browser window. Instead it allows same user to join the session and after 10-20 seconds it removes the old user. Is there a way remove the user from zoom session immediately? Or can we stop letting the user join till the zoom removes old user from the session?

Which version?
1.7.7

1 Like

Hey @vikas.pulluri,

Sounds like you want to use the expel function! :slight_smile:

Thanks,
Tommy

Hi @tommy,

Seems like expel function is to kick attendees out of the session, which can be controlled by host. In our case, we have one main concern.

  1. when a host or attendee closes the browser window, their exit is not reflecting in other users screen. Other users can still see exited user in the participant panel, chat panel and blank video screen for sometime. Doesn’t zoom automatically disconnect the user from zoom session and update the UI whenever user closes browser or refreshes?

Thanks,
Vikas

you need to do a manual leave() or end() before closing the window

  • ZoomMtg.leaveMeeting({}); OR
  • ZoomMtg.endMeeting({});

…depending on your role.
regards,
hari

Hey @vikas.pulluri,

It takes a few moments for Zoom to recognize that the user is no longer connected, and then they will be removed from the meeting participant list.

Also thanks for your suggestions @harald.glanzer! :slight_smile:

Thanks,
Tommy

Thanks @tommy and @harald.glanzer for the clarification

Thanks,
Vikas

1 Like

Happy to help! :slight_smile:

Thanks,
Tommy