From 817781085f45ed9c8d48a1b400a746f7ced05396 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 29 Sep 2022 18:23:47 +0300 Subject: [PATCH] Added logs --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index b56232c..a7d4401 100644 --- a/app.js +++ b/app.js @@ -215,7 +215,9 @@ peers.on('connection', async socket => { socket.on('transport-connect', async ({ dtlsParameters }) => { try { const callId = socketDetails[socket.id]; - console.log('🔴 dtlsParameters', dtlsParameters); + console.log('🔴 typeof dtlsParameters', typeof dtlsParameters); + console.log('🟢 dtlsParameters', JSON.parse(dtlsParameters)); + console.log('🟡 dtlsParameters', dtlsParameters); console.log(`[transport-connect] socket.id ${socket.id} | callId ${callId}`) await videoCalls[callId].producerTransport.connect({ dtlsParameters }); } catch (error) {