WebTransport is a browser API for bidirectional streams, unidirectional streams, and datagrams in one session. Streams suit reliable ordered data; datagrams suit updates where some loss is acceptable.
The demo animates three lanes with different directions and progress. It requires browser and server support in a secure context.
When to use
Consider it when a real-time app needs different reliability modes within one connection.