From 89ee1f301a00e4e2c716bd996e15eb71c2bd23a5 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 12 Aug 2022 14:56:20 +0300 Subject: [PATCH] Refactor transportclose 18 --- app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.js b/app.js index b3e6346..5f21e8b 100644 --- a/app.js +++ b/app.js @@ -238,6 +238,7 @@ peers.on('connection', async socket => { const createWebRtcTransportLayer = async (callId, callback) => { try { + console.log('[createWebRtcTransportLayer] callId', callId); // https://mediasoup.org/documentation/v3/mediasoup/api/#WebRtcTransportOptions const webRtcTransport_options = { listenIps: [ @@ -250,6 +251,8 @@ const createWebRtcTransportLayer = async (callId, callback) => { enableTcp: true, preferUdp: true, } + + console.log('webRtcTransport_options', webRtcTransport_options); // https://mediasoup.org/documentation/v3/mediasoup/api/#router-createWebRtcTransport let transport = await router[callId].createWebRtcTransport(webRtcTransport_options) @@ -279,6 +282,7 @@ const createWebRtcTransportLayer = async (callId, callback) => { return transport } catch (error) { + console.log('[createWebRtcTransportLayer] ERROR', JSON.stringify(error)); callback({ params: { error: error