From c7049ef90996a36ffdce7857530655fe0ebcc174 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 13 Jan 2023 19:36:04 +0200 Subject: [PATCH] test --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 76ea908..2ab3e52 100644 --- a/app.js +++ b/app.js @@ -302,13 +302,13 @@ peers.on('connection', async socket => { if (!isInitiator(callId, socket.id)) { console.log('🟥 Emit to initiatorSocket'); - initiatorSocket.emit('new-producer', { + videoCalls[callId].initiatorSocket.emit('new-producer', { callId }); } else { console.log('🟥 Emit to receiverSocket'); - receiverSocket.emit('new-producer', { + videoCalls[callId].receiverSocket.emit('new-producer', { callId }); }