Added logs

This commit is contained in:
Sergiu Toma 2022-09-29 18:23:47 +03:00
parent a95c29659e
commit 817781085f

4
app.js
View File

@ -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) {