From 256687f2849caa41835f6b4ba839e462a1e436ab Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 13 Jan 2023 18:59:25 +0200 Subject: [PATCH] test --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index d250eff..15ced5a 100644 --- a/app.js +++ b/app.js @@ -196,10 +196,11 @@ peers.on('connection', async socket => { videoCalls[callId] = { router: await worker.createRouter({ mediaCodecs }) }; console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`); videoCalls[callId].receiverSocket = socket; - console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].receiverSocket.id) + console.log('------------', videoCalls[callId].receiverSocket); + console.log('🟦 videoCalls[callId].receiverSocket.socket.id', videoCalls[callId].receiverSocket.socket.id) } else { videoCalls[callId].initiatorSocket = socket; - console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id) + console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.socket.id) } socketDetails[socket.id] = callId; // rtpCapabilities is set for callback