WIP: router-close-connections #2

Closed
sergiu wants to merge 13 commits from router-close-connections into master
Showing only changes of commit eb6dd7fdbd - Show all commits

8
app.js
View File

@ -196,8 +196,8 @@ peers.on('connection', async socket => {
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
router[callId].close() router[callId].close()
delete router[callId] delete router[callId]
producer.close() // producer.close()
consumer.close() // consumer.close()
}) })
consumer.on('producerclose', () => { consumer.on('producerclose', () => {
@ -206,8 +206,8 @@ peers.on('connection', async socket => {
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
router[callId].close() router[callId].close()
delete router[callId] delete router[callId]
producer.close() // producer.close()
consumer.close() // consumer.close()
}) })
// from the consumer extract the following params // from the consumer extract the following params