Jitsi Meet: Hang up callback

I am using the jitsi meet iframe API, I want to capture the event when the user hangs up. I read the documentation for the iframe API but I can’t seem to find the API for it.

Thanks

I am using following, hope it gives you some idea
api.on(‘readyToClose’, () => {

	window.location.href="logout.php";
					});