LH-276: Update producer close event handler

This commit is contained in:
Sergiu Toma 2023-02-21 01:55:40 +02:00
parent c65dcf1729
commit 7ec9f4ebde

4
app.js
View File

@ -487,6 +487,7 @@ peers.on('connection', async (socket) => {
- When consuming on consumerTransport, it is initially done with paused: true, here we will resume
- For the initiator we resume the initiatorConsumerAUDIO/VIDEO and for receiver the receiverConsumerAUDIO/VIDEO
*/
try {
socket.on('consumer-resume', () => {
try {
const callId = socketDetails[socket.id];
@ -513,6 +514,9 @@ peers.on('connection', async (socket) => {
console.error(`[consumer-resume] | ERROR | callId: ${socketDetails[socket.id]} | isInitiator: ${isInitiator} | error: ${error.message}`);
}
});
} catch (error) {
console.log('akakakakakak', error.mesage);
}
socket.on('close-producer', ({ callId, kind}) => {
try {