From 5abc3095029ef0e56d1d63867928d07f9e32c593 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 13 Sep 2022 20:28:07 +0300 Subject: [PATCH] LINXD-2209: Added logs --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 8ef4ba6..ec2727e 100644 --- a/app.js +++ b/app.js @@ -113,6 +113,7 @@ const mediaCodecs = [ const getRtpCapabilities = (callId, callback) => { + console.log('[getRtpCapabilities]', callId, callback); const rtpCapabilities = router[callId].rtpCapabilities callback({ rtpCapabilities }) } @@ -121,12 +122,13 @@ const mediaCodecs = [ if (queue.length > 0) { const { callId, callback } = queue.shift(); if (router[callId] === undefined) { + console.log('🟢 callId', callId, '| callback', callback) router[callId] = await worker.createRouter({ mediaCodecs }) console.log(`[createRoom] Router ID: ${router[callId].id}`) getRtpCapabilities(callId, callback) } } - }, 2000); + }, 4000); peers.on('connection', async socket => { console.log('[connection] socketId:', socket.id)