I don’t understand the problem.
- You create a DataProducer on a DirectTransport in mediasoup.
- You create a DataConsumer on a WebRtcTransport in mediasoup to consume such a DataProducer.
- You get the
sctpStreamParametersof such a server side DataConsumer and signal them to the browser that callstransport.consumeData()with them.