The current explainer implements send (DOMString message); and EventHandler onmessage; directly on the peer object.
Protocols such as SCTP (as used by WebRTC) and QUIC (as used by OpenScreen Protocol) can carry multiple simultaneous streams.
It seems worth considering to support opening multiple streams. For example: a game could use one stream to send player updates while using another for in-game messaging.
The current explainer implements
send (DOMString message);
andEventHandler onmessage;
directly on the peer object.Protocols such as SCTP (as used by WebRTC) and QUIC (as used by OpenScreen Protocol) can carry multiple simultaneous streams.
It seems worth considering to support opening multiple streams. For example: a game could use one stream to send player updates while using another for in-game messaging.