Added logs
This commit is contained in:
parent
817781085f
commit
0c713ed286
9
app.js
9
app.js
@ -215,10 +215,11 @@ peers.on('connection', async socket => {
|
||||
socket.on('transport-connect', async ({ dtlsParameters }) => {
|
||||
try {
|
||||
const callId = socketDetails[socket.id];
|
||||
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}`)
|
||||
// console.log('🔴 typeof dtlsParameters', typeof dtlsParameters);
|
||||
// console.log('🟢 dtlsParameters', JSON.parse(dtlsParameters));
|
||||
// console.log('🟡 dtlsParameters', dtlsParameters);
|
||||
if (typeof dtlsParameters === 'string') dtlsParameters = JSON.parse(dtlsParameters);
|
||||
console.log(`[transport-connect] socket.id ${socket.id} | callId ${callId}`);
|
||||
await videoCalls[callId].producerTransport.connect({ dtlsParameters });
|
||||
} catch (error) {
|
||||
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.stack}`);
|
||||
|
Loading…
Reference in New Issue
Block a user