Compare commits
No commits in common. "6d8f22939a77aa17ff569857b927aad28f073daa" and "0f1c268fa5a529e9ab14e8d1f40ac632a5569f5a" have entirely different histories.
6d8f22939a
...
0f1c268fa5
6
app.js
6
app.js
@ -109,7 +109,7 @@ peers.on('connection', async socket => {
|
||||
})
|
||||
|
||||
socket.on('createRoom', async ({ callId }, callback) => {
|
||||
console.log('Router length:', Object.keys(router).length);
|
||||
console.log('router', router);
|
||||
if (router[callId] === undefined) {
|
||||
// worker.createRouter(options)
|
||||
// options = { mediaCodecs, appData }
|
||||
@ -160,7 +160,7 @@ peers.on('connection', async socket => {
|
||||
producer.on('transportclose', () => {
|
||||
console.log('transport for this producer closed ')
|
||||
producer.close()
|
||||
delete router[callId]
|
||||
router[callId] = null
|
||||
})
|
||||
|
||||
// Send back to the client the Producer's id
|
||||
@ -191,7 +191,7 @@ peers.on('connection', async socket => {
|
||||
|
||||
consumer.on('transportclose', () => {
|
||||
console.log('transport close from consumer', callId)
|
||||
delete router[callId]
|
||||
router[callId] = null
|
||||
})
|
||||
|
||||
consumer.on('producerclose', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user