WIP: router-close-connections #2
8
app.js
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user