WebTransport: Low-Latency Bidirectional Messaging API
a year ago
- #HTTP3
- #WebDevelopment
- #Networking
- WebTransport is a web API using HTTP/3 for bidirectional client-server communication.
- Supports unreliable datagram APIs (low-latency, unordered) and reliable stream APIs (ordered data transfer).
- Use cases include gaming state updates, media streaming, and server notifications.
- WebTransport is not a direct replacement for WebSockets or UDP Socket API but offers advantages like no head-of-line blocking.
- Comparison with WebRTC data channels shows WebTransport requires less setup and is more web developer-friendly.
- Current browser support is limited, with Chromium 97 being the first to launch WebTransport.
- The API is designed around modern web primitives like Streams API and Promises.
- Includes methods for datagrams, unidirectional, and bidirectional streams.
- Privacy and security considerations are addressed in the draft specification.
- Feedback channels include GitHub, Chrome bug tracker, and social media for public support.