In mediasoup(server side),how can I judge whether a transport is a sendTransport or a recvTransport.If client use the transport to send or receive, is there a sign in transport itself? thanks.
Being a send or recv transport is just a limitation in mediasoup-client. In mediasoup server there is no such a limitation. Said that, you (your Node app) creates the WebRtcTransports for sending and receiving, so you can store them into this.recvWebRtcTransport
and this.sendWebRtcTransport
associated to a “peer” or you can add a custom type: "send" | "recv"
into webRtcTransport.appData
object.
good,I know,thank very much.