# WebSdk 2.9.7 onMeetingStatus does not return status on 'disconnect'

**URL:** <https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843>\
**Category:** Web\
**Created:** [February 28, 2023, 11:13am UTC](https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843 "2023-02-28T11:13:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian.galuszka](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adrian.galuszka/32/45882_2.png) [@adrian.galuszka](https://devforum.zoom.us/u/adrian.galuszka)\
**Post date:** [February 28, 2023, 11:13am UTC](https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843/1 "2023-02-28T11:13:30Z")

</div>

**Meeting SDK Type and Version** Web MeetingSdk 2.9.7 also tried on 2.10.0

\*\*Description: I want to implement in the Angular app redirect after the meeting ends or when the user left the meeting. From the newer version than 2.6.0 - hook ‘onMeetingStatus’ not returns for me status 3. For the previous versions it was working correctly, but now I had to update the library version because I need the view selector button.  
I tried also ‘onUserLeave’ but it did not return anything, ‘leaveUrl’ field does not work as well.  
Any ideas to workaround the missed status? \*\*

**How To Reproduce**

_1. Install library from [@zoomus/websdk - npm](https://www.npmjs.com/package/@zoomus/websdk)_  
_2. Implement the library with instruction_  
_3. Add ‘onMeetingStatus’ listener to the code_  
_4. Join, next leave the meeting and check if status 3 was returned. Do the same but enter as host, end the whole meeting, and check the status._

```auto
ZoomMtg.inMeetingServiceListener('onMeetingStatus', function (data) {
      // {status: 1(connecting), 2(connected), 3(disconnected), 4(reconnecting)}
      console.log('[ZOOM-MEET.COMPONENT-onMeetingStatus:]', data.meetingStatus);

      if (data.meetingStatus === 3) {
        window.location.href = leaveUrlAddress;
      }
    });

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 17, 2023, 6:58pm UTC](https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843/2 "2023-03-17T18:58:23Z")

</div>

Hi @adrian.galuszka  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Have you been able to troubleshoot this issue on your end?

---

<div class="post-metadata">

**Author:** ![sridhar.netha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sridhar.netha/32/46836_2.png) [@sridhar.netha](https://devforum.zoom.us/u/sridhar.netha)\
**Post date:** [March 28, 2023, 9:36am UTC](https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843/3 "2023-03-28T09:36:59Z")

</div>

@elisa.zoom My question is similar to @adrian.galuszka  
Is there an option to automatically join waiting guests when host starts meeting, like it’s done in Zoom desktop app?

Currently in websdk version [‘2.10.1’, ‘2.10.1\_20230301\_ES5\_release - {date}’, 1502], the guest sits on “Meeting has not started” screen and nothing happens when the host later starts this meeting.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 11, 2023, 7:41pm UTC](https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843/4 "2023-04-11T19:41:24Z")

</div>

@sridhar.netha,  
Have you considered leveraging the `tk` token Join flow ?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/9/59d709a192925021b21c337aab2cc8cf4e5f044d.png)

Here is our help documentation for reference :

[https://developers.zoom.us/docs/meeting-sdk/web/client-view/webinars/#the-tk-parameter-also-supports](https://developers.zoom.us/docs/meeting-sdk/web/client-view/webinars/#the-tk-parameter-also-supports)

---

<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:** [May 12, 2023, 5:42am UTC](https://devforum.zoom.us/t/websdk-2-9-7-onmeetingstatus-does-not-return-status-on-disconnect/83843/5 "2023-05-12T05:42:10Z")

</div>

Closed on May 12, 2023, 5:42am UTC

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