Receiving session closed event when host disconnect and reconnect

Description
Sometimes when the participant with the role “host” disconnect and reconnect after some time, then receiving event “Closed” ( ConnectionState | Zoom Video SDK for Web - 1.9.5) in event_connection_change ( Zoom Video SDK for Web - 1.9.5).

Which Web Video SDK version?
1.9.5

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Join session with role the “host”
  2. Join another user
  3. Disconnect internet of host user
  4. Reconnect internet of host user after 10s
  5. event_connection_change callback will give “Closed” state

Screenshots

Device:

  • Device: Dell Inspiron 15
  • OS: Windows 10
  • Browser: Google Chrome
  • Browser Version: 119.0.6045.124 (Official Build) (64-bit)

Hi @arfa.ahmed ,

This is expected behavior. When a host leaves the session, it will automatically end unless someone is assigned co-host.

Thanks,
Rehema

Hey @arfa.ahmed

Thanks for your feedback.

Has the host already left the session? Or was it manually triggered to join the session again?

Otherwise, if the session is reconnected, the sequence of event payload is as follows:

connection-change:{"state":"Connected"}
connection-change: {"state":"Reconnecting","reason":"failover"}
connection-change: {"state":"Connected"}

Thanks
Vic

@vic.yang yes, mostly receiving this pattern but sometimes receiving state “Closed” also like this:

connection-change:{"state":"Connected"}
connection-change:{"state":"Closed"}
connection-change:{"state":"Connected"}
connection-change: {"state":"Reconnecting","reason":"failover"}
connection-change: {"state":"Connected"}

and this also not leaving the user

Hey @arfa.ahmed

It’s quite unusual.

Typically, the connection-change:{"state":"Closed"} event occurs when someone leaves the session or when the session is ended.

Could you please report the logs to us when the issue occurs again? It would be really helpful for us to investigate further.

Thanks
Vic

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.