Added callback for 'transport-produce'

This commit is contained in:
Sergiu Toma 2022-10-03 12:56:27 +03:00
parent e57cb94892
commit 4c7fb73048

3
app.js
View File

@ -258,9 +258,10 @@ peers.on('connection', async socket => {
closeCall(callId);
});
console.log('----------- videoCalls[callId].producer.id', videoCalls[callId].producer.id);
// Send back to the client the Producer's id
callback({
id: producer.id
id: videoCalls[callId].producer.id
});
} catch (error) {
console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);