The options for connecting the receiving transport.
A promise that resolves when the connection is established.
const options = {
consumerTransport,
remoteProducerId: 'producer-id',
serverConsumerTransportId: 'transport-id',
nsock: socket,
parameters: connectRecvTransportOptions,
};
connectRecvTransport(options)
.then(() => {
console.log('Transport connected and consuming media');
})
.catch((error) => {
console.error('Error connecting transport:', error);
});
Connects the receiving transport to consume media from a remote producer.