X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/4a191e8036581893bf5f4cfb284770d1bfe9a807..3f2e36eabf1494ac60a3cf533d3db86d25a6cc39:/server/index.js diff --git a/server/index.js b/server/index.js index 8ac427b..e60795f 100644 --- a/server/index.js +++ b/server/index.js @@ -24,8 +24,8 @@ server.on(events.types.CONNECTION, (socket) => { const sockets = await server.in(room).fetchSockets(); sockets.forEach((peer) => { if (peer.id !== me) { - events.addPeer(me)(peer); - events.addPeer(peer.id)(socket); + events.addPeer(me, false)(peer); + events.addPeer(peer.id, true)(socket); } }); });