Class ReceiveAllPipedTransports

Receives all piped transports by emitting an event to the server and processing the response.

This method communicates with the server to request piped transports for a specific room and member. It checks if any producers exist and, if so, iterates through different levels to retrieve piped producers.

The options for receiving all piped transports.

The socket instance used for communication.

Whether the room is a community edition room.

The parameters for the operation.

The name of the room.

The member identifier.

The function to get piped producers for a given level.

A promise that resolves when the operation is complete.

Will log an error message if the operation fails.

const options = {
nsock: socketInstance,
community: true,
parameters: {
roomName: 'Room1',
member: 'Member1',
getPipedProducersAlt: getPipedProducersAltFunction,
},
};

await receiveAllPipedTransports(options);

Constructors

Methods