diff --git a/app.js b/app.js index f6e7e9b..db6b46d 100644 --- a/app.js +++ b/app.js @@ -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() }) })