X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/6a3568bc5942423b93ba2749036489ad9e38e7cf..bab26a4da2a2a0fdc88ec3af56909b12d822113a:/server/events.js diff --git a/server/events.js b/server/events.js index bad9046..e8094d5 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, }); }