LH-259: Added callback from transport-produce

This commit is contained in:
Sergiu Toma 2022-10-24 22:35:22 +03:00
parent b59a157b18
commit f4ebf92783
1 changed files with 3 additions and 3 deletions

6
app.js
View File

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