From 19808da24ec9b6cc54abdbf500359a34193209eb Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 15 Sep 2022 09:43:59 +0300 Subject: [PATCH] LINXD-2209: Get callId from soekct dictionary in consumer-resume case --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() }) })