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