From 4a7dec00f300db3790811a5a5fb41a039057a920 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 5 Oct 2022 15:08:16 +0300 Subject: [PATCH] Remove logs --- app.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/app.js b/app.js index 6e0fd05..0aa8c60 100644 --- a/app.js +++ b/app.js @@ -232,17 +232,6 @@ peers.on('connection', async socket => { socket.on('transport-produce', async ({ kind, rtpParameters, appData }, callback) => { try { const callId = socketDetails[socket.id]; - - console.log('kind typeof', typeof kind); - console.log('kind', kind); - - console.log('rtpParameters typeof', typeof rtpParameters); - console.log('rtpParameters', rtpParameters); - - console.log('appData typeof', typeof appData); - console.log('appData', appData); - - // if (typeof kind === 'string') kind = JSON.parse(kind); if (typeof rtpParameters === 'string') rtpParameters = JSON.parse(rtpParameters); console.log('[transport-produce] | socket.id', socket.id, '| callId', callId); @@ -258,11 +247,10 @@ peers.on('connection', async socket => { closeCall(callId); }); - console.log('----------- videoCalls[callId].producer.id', videoCalls[callId].producer.id); // Send back to the client the Producer's id - callback({ - id: videoCalls[callId].producer.id - }); + // callback({ + // id: videoCalls[callId].producer.id + // }); } catch (error) { console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`); }