From f02d6af7262646e13b2306507583be4c14dd998e Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 15 Feb 2023 11:14:02 +0200 Subject: [PATCH] LINXD-2342: Added documentation for kind --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 3ed9f2b..7e97cec 100644 --- a/app.js +++ b/app.js @@ -370,6 +370,8 @@ peers.on('connection', async (socket) => { ? videoCalls[callId].receiverSocket : videoCalls[callId].initiatorSocket; + // callId - Id of the call + // kind - producer type: audio/video socketToEmit.emit('new-producer', { callId, kind }); } catch (error) { console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);