RTCMultiConnection Docs

RTCMultiConnection.disconnectWith | "method"

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

"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' );

// or
// to leave entire room
connection.getAllParticipants().forEach(function(participantId) {
    connection.disconnectWith( participantId );
});

Latest Issues

Want to ask a Question?

You can include your email for private conversation!

Latest Updates