callback on createSendTransport

Hello, on client side I see that the transport takes the below params:

createSendTransport({ id, iceParameters, iceCandidates, dtlsParameters, sctpParameters, iceServers, iceTransportPolicy, additionalSettings, proprietaryConstraints, appData }: TransportOptions): Transport;

In an example I see the the transport is having a callback on it to provide the server side producer id.

transport.on(‘produce’, async ({ kind, rtpParameters }, callback, errback) => {
try {
const { id } = await socket.request(‘produce’, {
transportId: transport.id,
kind,
rtpParameters,
});
callback({ id });

My question is, is the producerId needed/mandatory by the transport because we can have multiple producers on the same transport unlike the plainRTPTransport that can have only 1 producer/consumer ?

Is it an optional field or mandatory?

Thanks

Oh, this exact question was already answered last week, please check the forum. Also this is a mediasoup-client category topic, not mediasoup one. Changing it.

Where in the docs you read that a PlainTransport can have only 1 producer/consumer?

Fix your signaling and get a proper requet/response mechanism.