Merge pull request #106 from thecodingmachine/up_to_4
Removing limitation to allow up to 4 players in a group
This commit is contained in:
commit
bb7061aa29
@ -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>)
|
||||
|
Loading…
Reference in New Issue
Block a user