From a51a757d17d6d63d0ca8f11acb1d3da70f8c1cb5 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 15 Sep 2022 09:57:57 +0300 Subject: [PATCH] LINXD-2209: Correctly close the call --- app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app.js b/app.js index a9662ce..b3c3c2a 100644 --- a/app.js +++ b/app.js @@ -118,14 +118,12 @@ peers.on('connection', async socket => { }) socket.on('createRoom', async ({ callId }, callback) => { - console.log('[createRoom] videoCalls', videoCalls); + console.log(`[createRoom] socket.id ${socket.id} callId ${callId}`); if (!videoCalls[callId]) { - console.log('create room'); console.log('[createRoom] callId', callId); videoCalls[callId] = { router: await worker.createRouter({ mediaCodecs }) } console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`) } - console.log('room exists', videoCalls); socketDetails[socket.id] = callId; getRtpCapabilities(callId, callback); })