X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/4a191e8036581893bf5f4cfb284770d1bfe9a807..3f2e36eabf1494ac60a3cf533d3db86d25a6cc39:/server/events.js diff --git a/server/events.js b/server/events.js index bad9046..18b9dd4 100644 --- a/server/events.js +++ b/server/events.js @@ -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 }); }