1 function addPeer(peerId
, shouldCreateOffer
) {
4 should_create_offer: shouldCreateOffer
,
8 function removePeer(peerId
) {
14 function SessionDescriptionReceived(peerId
, sessionDescription
) {
17 session_description: sessionDescription
,
21 function ICECandidateReceived(peerId
, ICECandidate
) {
24 ice_candidate: ICECandidate
,
31 REMOVE_PEER: 'removePeer',
32 RELAY_SESSION_DESCRIPTION: 'relaySessionDescription',
33 RELAY_ICE_CANDIDATE: 'relayICECandidate',
34 ICE_CANDIDATE_RECEIVED: 'ICECandidateReceived',
35 SESSION_DESCRIPTION_RECEIVED: 'SessionDescriptionReceived',
39 SessionDescriptionReceived: SessionDescriptionReceived
,
40 ICECandidateReceived: ICECandidateReceived
,