From 59ee78275e1b8459725ca50dc6f5726d71a4816e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20N=C3=A9grier?= Date: Wed, 13 May 2020 09:39:48 +0200 Subject: [PATCH] Removing limitation to allow up to 4 players in a group --- back/src/Controller/IoSocketController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/src/Controller/IoSocketController.ts b/back/src/Controller/IoSocketController.ts index 9f7de4e..672fbca 100644 --- a/back/src/Controller/IoSocketController.ts +++ b/back/src/Controller/IoSocketController.ts @@ -282,8 +282,8 @@ export class IoSocketController { } socket.join(roomId); socket.webRtcRoomId = roomId; - //if two persone in room share - if (this.Io.sockets.adapter.rooms[roomId].length < 2 || this.Io.sockets.adapter.rooms[roomId].length >= 4) { + //if two persons in room share + if (this.Io.sockets.adapter.rooms[roomId].length < 2 /*|| this.Io.sockets.adapter.rooms[roomId].length >= 4*/) { return; } let clients: Array = (Object.values(this.Io.sockets.sockets) as Array) -- 2.25.1