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] })