How to end call for all when first member(or any other member) hangup

So I want to stop meeting from code when any member leaves the meeting. I am using Jitsi Meet API. Please help me I am a beginner here. Thank you!

Did you find solution maybe?