WIP: router-close-connections #2

Closed
sergiu wants to merge 13 commits from router-close-connections into master
Showing only changes of commit 6682dd9482 - Show all commits

View File

@ -244,7 +244,7 @@ const createSendTransport = () => {
})
producerTransport.on('produce', async (parameters, callback, errback) => {
console.log(parameters)
console.log('produce', parameters)
try {
// tell the server to create a Producer
@ -256,11 +256,13 @@ const createSendTransport = () => {
rtpParameters: parameters.rtpParameters,
appData: parameters.appData,
}, ({ id }) => {
console.log('[transport-produce] callback | id', id);
// Tell the transport that parameters were transmitted and provide it with the
// server side producer's id.
callback({ id })
})
} catch (error) {
console.log('ERROR | produce |', error);
errback(error)
}
})