]> git.r.bdr.sh - rbdr/junction/blobdiff - server/events.js
Only send offer on one side
[rbdr/junction] / server / events.js
index bad9046f2f14fff4313b1af16d797a46e9b6e7a8..18b9dd45e9c00bd4ec7da0e1c4ea8ce8fb383ba5 100644 (file)
@@ -22,9 +22,10 @@ export const types = {
   ICE_CANDIDATE_RECEIVED: "ICECandidateReceived",
 };
 
   ICE_CANDIDATE_RECEIVED: "ICECandidateReceived",
 };
 
-export function addPeer(peerId) {
+export function addPeer(peerId, shouldCreateOffer) {
   return internals.emitter.bind(null, types.ADD_PEER, {
     peerId,
   return internals.emitter.bind(null, types.ADD_PEER, {
     peerId,
+    shouldCreateOffer
   });
 }
 
   });
 }