Fix lint tsc
authorgparant <g.parant@thecodingmachine.com>
Fri, 8 May 2020 09:58:09 +0000 (11:58 +0200)
committergparant <g.parant@thecodingmachine.com>
Fri, 8 May 2020 09:58:09 +0000 (11:58 +0200)
back/src/Controller/IoSocketController.ts

index bd3f9bc8f8924c42b513fc47d52de112a620d0b3..889479471376aef844c99bade3baaeed84912954 100644 (file)
@@ -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<ExSocketInterface> = Object.values(this.Io.sockets.sockets)
+        let clients: Array<ExSocketInterface> = (Object.values(this.Io.sockets.sockets) as Array<ExSocketInterface>)
             .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