X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/6a3568bc5942423b93ba2749036489ad9e38e7cf..c7eb2859ef12380a3ca2314912676283012c6703:/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); } }); });