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

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

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