# Receiving session closed event when host disconnect and reconnect

**URL:** <https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [November 14, 2023, 7:46am UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333 "2023-11-14T07:46:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arfa.ahmed](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/arfa.ahmed/32/33501_2.png) [@arfa.ahmed](https://devforum.zoom.us/u/arfa.ahmed)\
**Post date:** [November 14, 2023, 7:46am UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333/1 "2023-11-14T07:46:55Z")

</div>

**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](https://marketplacefront.zoom.us/sdk/custom/web/enums/ConnectionState.html#Closed)) in event\_connection\_change ( [Zoom Video SDK for Web - 1.9.5](https://marketplacefront.zoom.us/sdk/custom/web/modules.html#event_connection_change)).

**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**

 ![image_2023_11_07T07_42_33_186Z](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/1/71c487e14de5ea4875d3ea2a7ff661625d83aa83.png)

**Device:**

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

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [November 14, 2023, 3:28pm UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333/2 "2023-11-14T15:28:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 15, 2023, 4:06am UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333/3 "2023-11-15T04:06:16Z")

</div>

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:

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

```

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![arfa.ahmed](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/arfa.ahmed/32/33501_2.png) [@arfa.ahmed](https://devforum.zoom.us/u/arfa.ahmed)\
**Post date:** [November 15, 2023, 6:06am UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333/4 "2023-11-15T06:06:14Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 15, 2023, 6:47am UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333/5 "2023-11-15T06:47:32Z")

</div>

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.

> **[Video SDK - web - Service quality](https://developers.zoom.us/docs/video-sdk/web/quality/#report-issues-to-zoom)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 15, 2023, 4:47pm UTC](https://devforum.zoom.us/t/receiving-session-closed-event-when-host-disconnect-and-reconnect/98333/6 "2023-12-15T16:47:54Z")

</div>

Closed on December 15, 2023, 4:47pm UTC

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