diff --git a/app.js b/app.js index e297cc5..cc3be96 100644 --- a/app.js +++ b/app.js @@ -266,17 +266,6 @@ peers.on('connection', async (socket) => { : videoCalls[callId].initiatorSocket; socketToEmit.emit('new-producer', { callId }); - // if (!isInitiator(callId, socket.id)) { - // await videoCalls[callId].receiverProducerTransport.connect({ dtlsParameters }); - // videoCalls[callId].initiatorSocket.emit('new-producer', { - // callId, - // }); - // } else { - // await videoCalls[callId].initiatorProducerTransport.connect({ dtlsParameters }); - // videoCalls[callId].receiverSocket.emit('new-producer', { - // callId, - // }); - // } } catch (error) { console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.message}`); }