"connection.disconnectWith" method allows you leave any single user.
"disconnectWith" method requires RTCMultiConnection >= v3.
"connection.disconnectWith" method accepts "remote-user-id" as the only argument:
connection.disconnectWith( 'remote-userid' );
// to leave entire room
connection.disconnectWith( participantId );
Want to ask a Question?
You can include your email for private conversation!