endSession()
endSession(true/false)
Ends the session for everyone. By default a confirmation popup is shown, but you can override that with a boolean parameter. If you set the value to false, all users are immediately removed from the room and the call ends without any confirmation modals of the action.
//End the session, but shows first a confirmation modal
sambaFrame.endSession();
//End the session without showing any confirmation modal
sambaFrame.endSession(false);
This method ends the whole call and everyone is removed from the room.
For only the local user to leave the session - use the leaveSession method instead.
Sample use case: You want moderators to be able to end calls by clicking a custom button in your integration.
Last updated