Added logs
This commit is contained in:
parent
a95c29659e
commit
817781085f
4
app.js
4
app.js
@ -215,7 +215,9 @@ peers.on('connection', async socket => {
|
|||||||
socket.on('transport-connect', async ({ dtlsParameters }) => {
|
socket.on('transport-connect', async ({ dtlsParameters }) => {
|
||||||
try {
|
try {
|
||||||
const callId = socketDetails[socket.id];
|
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}`)
|
console.log(`[transport-connect] socket.id ${socket.id} | callId ${callId}`)
|
||||||
await videoCalls[callId].producerTransport.connect({ dtlsParameters });
|
await videoCalls[callId].producerTransport.connect({ dtlsParameters });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user