# Need to handle User Disconnect and Leave before they happen

**URL:** <https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378>\
**Category:** Windows\
**Created:** [September 13, 2021, 6:38pm UTC](https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378 "2021-09-13T18:38:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![p3john](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/p3john/32/28463_2.png) [@p3john](https://devforum.zoom.us/u/p3john)\
**Post date:** [September 13, 2021, 6:38pm UTC](https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378/1 "2021-09-13T18:38:28Z")

</div>

**Description**  
In my application I need to be able to intercept the MEETING\_STATUS\_DISCONNECTING and MEETING\_STATUS\_ENDED events **before** they happen so my application can display a message to the user, log some data, etc.

I also need the ability to **cancel** the event in the case where the user mistakenly leaves a meeting.

I see I can listen for the 2 status changes above, but I do not see where I can cancel them from having an effect on my applications ability to stop them from happening.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 13, 2021, 9:48pm UTC](https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378/2 "2021-09-13T21:48:52Z")

</div>

Hey @p3john,

Thanks for using the dev forum!

I do not believe it is possible to retrieve these before the callbacks have provided them.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![p3john](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/p3john/32/28463_2.png) [@p3john](https://devforum.zoom.us/u/p3john)\
**Post date:** [September 13, 2021, 10:33pm UTC](https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378/3 "2021-09-13T22:33:48Z")

</div>

Thanks for getting back to me Michael! I didn’t think so either by looking over the documentation.  
Thanks for confirming.

John

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 14, 2021, 10:04pm UTC](https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378/4 "2021-09-14T22:04:39Z")

</div>

Hey @p3john,

You’re welcome! Please let us know if you have any other questions 🙂

Thanks!  
Michael

---

<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:** [October 15, 2021, 8:05am UTC](https://devforum.zoom.us/t/need-to-handle-user-disconnect-and-leave-before-they-happen/57378/5 "2021-10-15T08:05:12Z")

</div>

Closed on October 15, 2021, 8:05am UTC

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