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

2
app.js
View File

@ -370,6 +370,8 @@ peers.on('connection', async (socket) => {
? videoCalls[callId].receiverSocket ? videoCalls[callId].receiverSocket
: videoCalls[callId].initiatorSocket; : videoCalls[callId].initiatorSocket;
// callId - Id of the call
// kind - producer type: audio/video
socketToEmit.emit('new-producer', { callId, kind }); socketToEmit.emit('new-producer', { callId, kind });
} catch (error) { } catch (error) {
console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`); console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);