]>
git.r.bdr.sh - rbdr/junction/blob - server/events.js
3ef21a9e3c69623276ab46cb8e75e398adeb2646
1 export function addPeer(peerId
, shouldCreateOffer
) {
8 export function removePeer(peerId
) {
14 export function SessionDescriptionReceived(peerId
, sessionDescription
) {
21 export function ICECandidateReceived(peerId
, candidate
) {
28 export function offerReceived(peerId
, offer
) {
35 export function answerReceived(peerId
, answer
) {
42 export const types
= {
44 REMOVE_PEER: 'removePeer',
45 RELAY_SESSION_DESCRIPTION: 'relaySessionDescription',
46 RELAY_ICE_CANDIDATE: 'relayICECandidate',
47 OFFER_RECEIVED: 'offerReceived',
48 ANSWER_RECEIVED: 'answerReceived',
49 ICE_CANDIDATE_RECEIVED: 'ICECandidateReceived',
50 SESSION_DESCRIPTION_RECEIVED: 'SessionDescriptionReceived',