Refactor transportclose 21
This commit is contained in:
parent
383e34bf22
commit
b64c49c1cd
2
app.js
2
app.js
@ -111,7 +111,6 @@ peers.on('connection', async socket => {
|
|||||||
socket.on('createRoom', async ({ callId }, callback) => {
|
socket.on('createRoom', async ({ callId }, callback) => {
|
||||||
console.log('[createRoom] callId', callId);
|
console.log('[createRoom] callId', callId);
|
||||||
console.log('Router length:', Object.keys(router).length);
|
console.log('Router length:', Object.keys(router).length);
|
||||||
console.log('1 - router[callId]', router[callId]);
|
|
||||||
if (router[callId] === undefined) {
|
if (router[callId] === undefined) {
|
||||||
// worker.createRouter(options)
|
// worker.createRouter(options)
|
||||||
// options = { mediaCodecs, appData }
|
// options = { mediaCodecs, appData }
|
||||||
@ -120,7 +119,6 @@ peers.on('connection', async socket => {
|
|||||||
// none of the two are required
|
// none of the two are required
|
||||||
router[callId] = await worker.createRouter({ mediaCodecs })
|
router[callId] = await worker.createRouter({ mediaCodecs })
|
||||||
console.log(`[createRoom] Router ID: ${router[callId].id}`)
|
console.log(`[createRoom] Router ID: ${router[callId].id}`)
|
||||||
console.log('2 - router[callId]', router[callId]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getRtpCapabilities(callId, callback)
|
getRtpCapabilities(callId, callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user