Added logs on createRoom on videoCalls

This commit is contained in:
Sergiu Toma 2022-12-14 10:15:34 +02:00
parent 695964d342
commit d1eb7afc3a

1
app.js
View File

@ -214,6 +214,7 @@ peers.on('connection', async socket => {
console.log(`[createRoom] missing callId ${callId}`); console.log(`[createRoom] missing callId ${callId}`);
} }
console.log('🔴 isInitiator(callId, socket.id)', isInitiator(callId, socket.id)); console.log('🔴 isInitiator(callId, socket.id)', isInitiator(callId, socket.id));
console.log('🟩 videoCalls[callId]', JSON.stringify(videoCalls[callId]));
} catch (error) { } catch (error) {
console.log(`ERROR | createRoom | callId ${callId} | ${error.message}`); console.log(`ERROR | createRoom | callId ${callId} | ${error.message}`);
} finally { } finally {