Remove callback with producer id from transport-produce

This commit is contained in:
Sergiu Toma 2022-08-31 16:53:08 +03:00
parent ba5add489d
commit 0af7ddd786

4
app.js
View File

@ -192,7 +192,9 @@ peers.on('connection', async socket => {
consumer.on('transportclose', () => { consumer.on('transportclose', () => {
console.log('transport close from consumer', callId) console.log('transport close from consumer', callId)
// closeRoom(callId)
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
router[callId].close()
delete router[callId] delete router[callId]
}) })