Class GetPipedProducersAlt

Retrieves piped producers and signals new consumer transport for each retrieved producer.

The options for retrieving piped producers.

Whether the room is a community edition room.

The WebSocket instance used for communication.

A flag indicating the level of the request.

Additional parameters for the request.

The member identifier.

A function to signal new consumer transport.

A promise that resolves when the operation is complete.

If an error occurs during the process of retrieving producers.

const options = {
community: true,
nsock: socketInstance,
islevel: '2',
parameters: {
member: 'user123',
signalNewConsumerTransport: async ({ nsock, remoteProducerId, islevel, parameters }) => {
// Implementation to signal new consumer transport
console.log(`Signaling new consumer transport for producer: ${remoteProducerId}`);
},
},
};

const getPipedProducersService = new GetPipedProducersAlt();
await getPipedProducersService.getPipedProducersAlt(options);
console.log('Piped producers retrieved successfully.');

Constructors

Methods

Constructors

Methods

  • Retrieves piped producers and signals new consumer transport for each retrieved producer.

    Parameters

    Returns Promise<void>

    A promise that resolves when the operation is complete.

    If an error occurs during the process of retrieving producers.