diff --git a/app.js b/app.js index abd804e..ea1b705 100644 --- a/app.js +++ b/app.js @@ -167,6 +167,15 @@ peers.on('connection', async socket => { router[callId].close() delete router[callId] }) + + try { + // Send back to the client the Producer's id + callback({ + id: producer.id + }) + } catch (error) { + console.log(`ERROR | transport-produce | ${error}`) + } }) // see client's socket.emit('transport-recv-connect', ...)