Retrieves piped producers and signals new consumer transport for each retrieved producer.
If an error occurs during the process of retrieving producers.
const options = { nsock: socketInstance, islevel: '1', parameters: { member: 'memberId', signalNewConsumerTransport: async ({ remoteProducerId, islevel, nsock, parameters }) => { // Implementation for signaling new consumer transport }, },};getProducersPiped(options) .then(() => { console.log('Successfully retrieved piped producers'); }) .catch((error) => { console.error('Error retrieving piped producers:', error); }); Copy
const options = { nsock: socketInstance, islevel: '1', parameters: { member: 'memberId', signalNewConsumerTransport: async ({ remoteProducerId, islevel, nsock, parameters }) => { // Implementation for signaling new consumer transport }, },};getProducersPiped(options) .then(() => { console.log('Successfully retrieved piped producers'); }) .catch((error) => { console.error('Error retrieving piped producers:', error); });
The options for getting piped producers.
A promise that resolves when the operation is complete.
Retrieves piped producers and signals new consumer transport for each retrieved producer.
Throws
If an error occurs during the process of retrieving producers.
Example