From 4f302570a22f7efc44a2d81c0a09413158804a9b Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 31 Aug 2022 16:24:21 +0300 Subject: [PATCH] Remove callback with producer id from transport-produce --- app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 1f3a1a0..9963fc1 100644 --- a/app.js +++ b/app.js @@ -155,7 +155,7 @@ peers.on('connection', async socket => { kind, rtpParameters, }) - + console.log('callback', callback); console.log(`[transport-produce] Producer ID: ${producer.id} | kind: ${producer.kind}`) producer.on('transportclose', () => { @@ -170,9 +170,9 @@ peers.on('connection', async socket => { }) // Send back to the client the Producer's id - callback({ - id: producer.id - }) + // callback({ + // id: producer.id + // }) }) // see client's socket.emit('transport-recv-connect', ...)