# Calling client leave to end session is not triggering client connection change event

**URL:** <https://devforum.zoom.us/t/calling-client-leave-to-end-session-is-not-triggering-client-connection-change-event/134048>\
**Category:** Video SDK\
**Created:** [June 16, 2025, 5:55am UTC](https://devforum.zoom.us/t/calling-client-leave-to-end-session-is-not-triggering-client-connection-change-event/134048 "2025-06-16T05:55:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naing](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Naing](https://devforum.zoom.us/u/Naing)\
**Post date:** [June 16, 2025, 5:55am UTC](https://devforum.zoom.us/t/calling-client-leave-to-end-session-is-not-triggering-client-connection-change-event/134048/1 "2025-06-16T05:55:07Z")

</div>

Hi there we are having an issue with closing consults after upgrading to the new Video SDK 2.2.0. The issue is similar to a past that was resolved

1. (doctor) Host ended the call
2. (patient) Participant cannot trigger the host ending the call, it has to do with the “connection-change”

Zoom SDK version: 2.2.0

We’ve recently just updated to Zoom version 2.2.0 on our deployment of Zoom to resolve some iOS video issues. While these issues have been resolved we can no longer close the video call. Details of the issue below

what’s currently happening is that on the doctor side (host) there’s a function that’s ending the call which is this one  
const onEndClick = useCallback(async () =\> {  
await zmClient.leave(true);  
}, [zmClient]);  
On the patient side (participant), there’s a function to check if the host has ended the call  
useEffect(() =\> {  
zmClient.on(‘connection-change’, onConnectionChange);  
zmClient.on(‘media-sdk-change’, onMediaSDKChange);  
return () =\> {  
// zmClient.off(‘connection-state-change’, (e) =\> console.log(e));  
zmClient.off(‘connection-change’, onConnectionChange);  
zmClient.off(‘media-sdk-change’, onMediaSDKChange);  
};  
}, [zmClient, onConnectionChange, onMediaSDKChange]);

from what I check and see, it seems that this one doesn’t trigger at all on patient side  
zmClient.on(‘connection-change’, onConnectionChange);

Current version i’m using is 2.2.0 both for patient and doctor  
Patient: ViteJS  
Doctor: Create-react-app

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [June 16, 2025, 4:10pm UTC](https://devforum.zoom.us/t/calling-client-leave-to-end-session-is-not-triggering-client-connection-change-event/134048/2 "2025-06-16T16:10:25Z")

</div>

Hi @Naing Can you details the steps to replicate the issue with these events? Would your steps look like:

1. Host and user joins session
2. Host calls end meeting function
3. User automatically leaves the ended session
