WIP: router-close-connections #2
9
app.js
9
app.js
@ -167,6 +167,15 @@ peers.on('connection', async socket => {
|
|||||||
router[callId].close()
|
router[callId].close()
|
||||||
delete router[callId]
|
delete router[callId]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
try {
|
||||||
|
// Send back to the client the Producer's id
|
||||||
|
callback({
|
||||||
|
id: producer.id
|
||||||
|
})
|
||||||
|
} catch (error) {
|
||||||
|
console.log(`ERROR | transport-produce | ${error}`)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
// see client's socket.emit('transport-recv-connect', ...)
|
// see client's socket.emit('transport-recv-connect', ...)
|
||||||
|
Loading…
Reference in New Issue
Block a user
Isn't the
producer
a global variable?What should the client do with the producer id? Looks below that is sent back to server, why?