Leave the call

The disconnect function is used to disconnect a participant from a session.

function disconnect() {
	WTSDK.Session.disconnect();
	document.getElementById("gallery").innerHTML = "";

	document.getElementById('session_container').style.display = 'none';
	document.getElementById('config_dialog').style = `display: flex; flex-direction: column;`;
}

Last updated