Refactor transportclose 21

This commit is contained in:
Sergiu Toma 2022-08-12 15:08:30 +03:00
parent 383e34bf22
commit b64c49c1cd
1 changed files with 0 additions and 2 deletions

2
app.js
View File

@ -111,7 +111,6 @@ peers.on('connection', async socket => {
socket.on('createRoom', async ({ callId }, callback) => {
console.log('[createRoom] callId', callId);
console.log('Router length:', Object.keys(router).length);
console.log('1 - router[callId]', router[callId]);
if (router[callId] === undefined) {
// worker.createRouter(options)
// options = { mediaCodecs, appData }
@ -120,7 +119,6 @@ peers.on('connection', async socket => {
// none of the two are required
router[callId] = await worker.createRouter({ mediaCodecs })
console.log(`[createRoom] Router ID: ${router[callId].id}`)
console.log('2 - router[callId]', router[callId]);
}
getRtpCapabilities(callId, callback)