X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/6a3568bc5942423b93ba2749036489ad9e38e7cf..5d2c4ecb44233569a516dde301a02d44098ec15d:/server/events.js?ds=sidebyside 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, }); }