LINXD-2209: Add 2000ms delay between room creation

This commit is contained in:
Sergiu Toma 2022-09-13 21:35:26 +03:00
parent 47eb302f5f
commit c12ececf47

4
app.js
View File

@ -125,7 +125,7 @@ const mediaCodecs = [
}
getRtpCapabilities(callId, callback)
}
}, 1000);
}, 2000);
peers.on('connection', async socket => {
console.log('[connection] socketId:', socket.id)
@ -253,7 +253,7 @@ peers.on('connection', async socket => {
// send the parameters to the client
callback({ params })
} else {
console.log('[canConsume] Can\'t consume', error.message)
console.log('[canConsume] Can\'t consume')
}
} catch (error) {
console.log('[consume] Error', error.message)