From 802d7100068879b91c182617b002a743ca3c65d7 Mon Sep 17 00:00:00 2001 From: gparant Date: Fri, 8 May 2020 11:58:09 +0200 Subject: [PATCH] Fix lint tsc --- back/src/Controller/IoSocketController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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