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