# Question about \`connection-change\` event with 'state === ConnectionState.Connected'

**URL:** <https://devforum.zoom.us/t/question-about-connection-change-event-with-state-connectionstate-connected/133894>\
**Category:** Web\
**Created:** [June 11, 2025, 7:18am UTC](https://devforum.zoom.us/t/question-about-connection-change-event-with-state-connectionstate-connected/133894 "2025-06-11T07:18:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [June 11, 2025, 7:18am UTC](https://devforum.zoom.us/t/question-about-connection-change-event-with-state-connectionstate-connected/133894/1 "2025-06-11T07:18:29Z")

</div>

**Description**

We want to determine when the client receives the `connection-change` event with `state === ConnectionState.Connected`.

We would like to know whether this event was triggered only once or multiple times after losing the internet connection and successfully reconnecting.

References:

> **[ConnectionState | Zoom Video SDK for Web - 2.2.0](https://marketplacefront.zoom.us/sdk/custom/web/enums/ConnectionState.html#Connected)**
>
> Documentation for Zoom Video SDK for Web - 2.2.0

> **[Video SDK - web - Event handling](https://developers.zoom.us/docs/video-sdk/web/handle-events/#session-events)**
>
> 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.

Thank you very much!

**Which Web Video SDK version?**  
2.1.0

---

<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:** [June 11, 2025, 9:28am UTC](https://devforum.zoom.us/t/question-about-connection-change-event-with-state-connectionstate-connected/133894/2 "2025-06-11T09:28:49Z")

</div>

Hey @lmtruong1512

Thanks for your feedback.

If it’s the first time joining a session, the `connecting-change` state transitions are:  
→ `Connected`: session joined successfully  
→ `Fail`: session join failed

If it’s a reconnecting scenario:  
→ `Reconnecting` → `Connected`: reconnecting succeeded  
→ `Reconnecting` → `Fail`: reconnecting failed

A session may experience multiple reconnecting events, depending on the network conditions or if the subsession feature is being used.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [June 11, 2025, 9:44am UTC](https://devforum.zoom.us/t/question-about-connection-change-event-with-state-connectionstate-connected/133894/3 "2025-06-11T09:44:19Z")

</div>

@vic.yang  
Thank you for your answer!

In the case where there’s a network issue and the reconnection is successful:

> → `Reconnecting` → `Connected` : reconnecting succeeded

We’re wondering whether the `Connected` state is emitted only once, rather than multiple times.  
Since we have some logic that runs when the `Connected` state is received, we want to ensure it doesn’t get triggered multiple times unexpectedly.

---

<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:** [June 11, 2026, 9:44am UTC](https://devforum.zoom.us/t/question-about-connection-change-event-with-state-connectionstate-connected/133894/4 "2026-06-11T09:44:45Z")

</div>

Closed on June 11, 2026, 9:44am UTC

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