From 3c5719c3c8cc875f1d79bdad35af9a2a34f6c36b Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 13 Jan 2023 19:09:20 +0200 Subject: [PATCH] test --- app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.js b/app.js index b0db429..d66c577 100644 --- a/app.js +++ b/app.js @@ -233,8 +233,10 @@ peers.on('connection', async socket => { console.log(`[createWebRtcTransport] socket ${socket.id} | sender ${sender} | callId ${callId}`); if (sender) { if(!videoCalls[callId].receiverProducerTransport && !isInitiator(callId, socket.id)) { + console.log('1'); videoCalls[callId].receiverProducerTransport = await createWebRtcTransportLayer(callId, callback); } else if(!videoCalls[callId].initiatorProducerTransport && isInitiator(callId, socket.id)) { + console.log('1'); videoCalls[callId].initiatorProducerTransport = await createWebRtcTransportLayer(callId, callback); } else { console.log(`producerTransport has already been defined | callId ${callId}`); @@ -242,8 +244,10 @@ peers.on('connection', async socket => { } } else if (!sender) { if(!videoCalls[callId].receiverConsumerTransport && !isInitiator(callId, socket.id)) { + console.log('3'); videoCalls[callId].receiverConsumerTransport = await createWebRtcTransportLayer(callId, callback); } else if(!videoCalls[callId].initiatorConsumerTransport && isInitiator(callId, socket.id)) { + console.log('4'); videoCalls[callId].initiatorConsumerTransport = await createWebRtcTransportLayer(callId, callback); } }