endSession()

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
sambaFrame.endSession();
//End the session without showing any confirmation modal
sambaFrame.endSession({requireConfirmation: false});

Sample use case: You want moderators to be able to end calls by clicking a custom button in your integration.

Last updated