diff --git a/app.js b/app.js index ad8e50a..4fcd5ed 100644 --- a/app.js +++ b/app.js @@ -156,7 +156,7 @@ peers.on('connection', async socket => { console.log(`[transport-produce] Producer ID: ${producer.id} | kind: ${producer.kind}`) - producer.on('transportclose', ({ callId }) => { + producer.on('transportclose', () => { console.log('transport for this producer closed') closeRoom(); }) diff --git a/public/bundle.js b/public/bundle.js index 0fa699c..7496e3b 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20721,10 +20721,8 @@ if (IS_PRODUCER === true) { if (parsedData.type === 'notify-end') { console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId); - // socket.emit('transportclose') socket.emit('transportclose') resetCallSettings() - // socket.destroy() } }) }) diff --git a/public/index.js b/public/index.js index fd097cb..f2e9824 100644 --- a/public/index.js +++ b/public/index.js @@ -62,10 +62,8 @@ if (IS_PRODUCER === true) { if (parsedData.type === 'notify-end') { console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId); - // socket.emit('transportclose') socket.emit('transportclose') resetCallSettings() - // socket.destroy() } }) })