From 0af7ddd786de410613240394445ca7811ab0139e Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 31 Aug 2022 16:53:08 +0300 Subject: [PATCH] Remove callback with producer id from transport-produce --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index c02ddb7..03e8ebb 100644 --- a/app.js +++ b/app.js @@ -192,7 +192,9 @@ peers.on('connection', async socket => { consumer.on('transportclose', () => { console.log('transport close from consumer', callId) - // closeRoom(callId) + + // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close + router[callId].close() delete router[callId] })