Zoom app - event on meeting end for frotnend

So, there are socket connections being used when users open app while in meeting. But when meeting is ended and app is not closed explicitly, app window vanishes but zoom is not exactly closing it. On normal browser, socket is disconnected when window closes. But here, that is not happening. Not sure what to do. Please help.