From 6d80943907a71e160a17645214eeda6e736fb793 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Sat, 6 Aug 2022 10:15:51 +0300 Subject: [PATCH] Remove callId from transportClose(from producer) --- app.js | 2 +- public/bundle.js | 2 -- public/index.js | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) 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() } }) })