diff --git a/back/src/Controller/IoSocketController.ts b/back/src/Controller/IoSocketController.ts index bd3f9bc8..88947947 100644 --- a/back/src/Controller/IoSocketController.ts +++ b/back/src/Controller/IoSocketController.ts @@ -189,7 +189,7 @@ export class IoSocketController { 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) + let clients: Array = (Object.values(this.Io.sockets.sockets) as Array) .filter((client: ExSocketInterface) => client.webRtcRoomId && client.webRtcRoomId === roomId); //send start at one client to initialise offer webrtc //send all users in room to create PeerConnection in front