]>
git.r.bdr.sh - rbdr/junction/blob - server/events.js
1 export function addPeer(peerId
, shouldCreateOffer
) {
4 should_create_offer: shouldCreateOffer
,
8 export function removePeer(peerId
) {
14 export function SessionDescriptionReceived(peerId
, sessionDescription
) {
17 session_description: sessionDescription
,
21 export function ICECandidateReceived(peerId
, ICECandidate
) {
24 ice_candidate: ICECandidate
,
28 export const types
= {
30 REMOVE_PEER: 'removePeer',
31 RELAY_SESSION_DESCRIPTION: 'relaySessionDescription',
32 RELAY_ICE_CANDIDATE: 'relayICECandidate',
33 ICE_CANDIDATE_RECEIVED: 'ICECandidateReceived',
34 SESSION_DESCRIPTION_RECEIVED: 'SessionDescriptionReceived',