endSession({requireConfirmation: true/false})

Ends the session for everyone. By default a confirmation popup is shown, but you can override that with the requireConfirmation 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
//End the session without showing any confirmation modal
sambaFrame.endSession({requireConfirmation: 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