createDirectTransport connect with frontend to send a message

Hi, everyone can you please give me example how I can connect backend createDirectTransport with frontend one, thx a lot

That makes no sense at all. Sorry.

ok, I try to prephrase,

I create createDirectTransport on mediasoupRouter and create Producer by transport.produceData() and consumer transport.consumeData(), how can I set up client to recive data on .on(‘message’, console.log).

Communicate the client with the server using WebSocket or a mediasoup DataChannel.

1 Like