LINXD-2209: Get callId from soekct dictionary in consumer-resume case

This commit is contained in:
Sergiu Toma 2022-09-15 09:43:59 +03:00
parent 2f6c25c171
commit 19808da24e

5
app.js
View File

@ -241,8 +241,9 @@ peers.on('connection', async socket => {
}
})
socket.on('consumer-resume', async ({ callId }) => {
console.log(`[consumer-resume]`)
socket.on('consumer-resume', async () => {
const callId = socketDetails[socket.id];
console.log(`[consumer-resume] callId ${callId}`)
await videoCalls[callId].consumer.resume()
})
})