From eb6dd7fdbd5f13ec0c2c4f8613fb4abb310ec30b Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 1 Sep 2022 13:13:00 +0300 Subject: [PATCH] Let router to close connections --- app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 860dae3..abd804e 100644 --- a/app.js +++ b/app.js @@ -196,8 +196,8 @@ peers.on('connection', async socket => { // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close router[callId].close() delete router[callId] - producer.close() - consumer.close() + // producer.close() + // consumer.close() }) consumer.on('producerclose', () => { @@ -206,8 +206,8 @@ peers.on('connection', async socket => { // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close router[callId].close() delete router[callId] - producer.close() - consumer.close() + // producer.close() + // consumer.close() }) // from the consumer extract the following params