From 59ee78275e1b8459725ca50dc6f5726d71a4816e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= <d.negrier@thecodingmachine.com> 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 9f7de4ec..672fbcac 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<ExSocketInterface> = (Object.values(this.Io.sockets.sockets) as Array<ExSocketInterface>)