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