LINXD-2342: Added documentation for kind

This commit is contained in:
Sergiu Toma 2023-02-15 11:14:02 +02:00
parent 7ee93d7963
commit f02d6af726
1 changed files with 2 additions and 0 deletions

2
app.js
View File

@ -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}`);