Removing limitation to allow up to 4 players in a group
This commit is contained in:
parent
c846aff456
commit
59ee78275e
@ -282,8 +282,8 @@ export class IoSocketController {
|
|||||||
}
|
}
|
||||||
socket.join(roomId);
|
socket.join(roomId);
|
||||||
socket.webRtcRoomId = roomId;
|
socket.webRtcRoomId = roomId;
|
||||||
//if two persone in room share
|
//if two persons in room share
|
||||||
if (this.Io.sockets.adapter.rooms[roomId].length < 2 || this.Io.sockets.adapter.rooms[roomId].length >= 4) {
|
if (this.Io.sockets.adapter.rooms[roomId].length < 2 /*|| this.Io.sockets.adapter.rooms[roomId].length >= 4*/) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let clients: Array<ExSocketInterface> = (Object.values(this.Io.sockets.sockets) as Array<ExSocketInterface>)
|
let clients: Array<ExSocketInterface> = (Object.values(this.Io.sockets.sockets) as Array<ExSocketInterface>)
|
||||||
|
Loading…
Reference in New Issue
Block a user