- peer_id: peerId,
- session_description: sessionDescription,
+ peerId,
+ sessionDescription,
+ }
+}
+
+export function ICECandidateReceived(peerId, candidate) {
+ return {
+ peerId,
+ candidate
+ }
+}
+
+export function offerReceived(peerId, offer) {
+ return {
+ peerId,
+ offer
REMOVE_PEER: 'removePeer',
RELAY_SESSION_DESCRIPTION: 'relaySessionDescription',
RELAY_ICE_CANDIDATE: 'relayICECandidate',
REMOVE_PEER: 'removePeer',
RELAY_SESSION_DESCRIPTION: 'relaySessionDescription',
RELAY_ICE_CANDIDATE: 'relayICECandidate',
ICE_CANDIDATE_RECEIVED: 'ICECandidateReceived',
SESSION_DESCRIPTION_RECEIVED: 'SessionDescriptionReceived',
};
ICE_CANDIDATE_RECEIVED: 'ICECandidateReceived',
SESSION_DESCRIPTION_RECEIVED: 'SessionDescriptionReceived',
};