diff --git a/app.js b/app.js index a9662ce..b3c3c2a 100644 --- a/app.js +++ b/app.js @@ -118,14 +118,12 @@ peers.on('connection', async socket => { }) socket.on('createRoom', async ({ callId }, callback) => { - console.log('[createRoom] videoCalls', videoCalls); + console.log(`[createRoom] socket.id ${socket.id} callId ${callId}`); if (!videoCalls[callId]) { - console.log('create room'); console.log('[createRoom] callId', callId); videoCalls[callId] = { router: await worker.createRouter({ mediaCodecs }) } console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`) } - console.log('room exists', videoCalls); socketDetails[socket.id] = callId; getRtpCapabilities(callId, callback); })