RTCMultiConnection Docs

RTCMultiConnection.getAllParticipants | "method"

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

"connection.getAllParticipants" method allows you get list of all connected users.

"getAllParticipants" method requires RTCMultiConnection >= v3.

"connection.getAllParticipants" method returns array.

connection.getAllParticipants().forEach(function(participantId) {
    // typeof participantId === 'string'
    var peer = connection.peers[participantId];
    console.log(peer.connection, peer.userid, peer.streams, peer.channels);

Latest Issues

Want to ask a Question?

You can include your email for private conversation!

Latest Updates