RTCMultiConnection Docs

RTCMultiConnection API Reference / "userid"

  1. A userid is a randomly generated number that uniquely identifies each user. It is used to detect who sent signaling message; and vice versa.
  2. connection.userid = 'custom-userid';
    
  3. User-id is passed over all events; e.g.
  4. connection.onstream = function(e) {
        if(e.type == 'remote') {
            // user-id of the remote user is: e.userid
        }
    };
    
    connection.onNewSession = function(session) {
        // user-id of the session initiator is: session.userid
    };
    


Want to ask a Question?

You can include your email for private conversation!