Web APIs

WebTransport API

Checking compatibility...

Establish low-latency, bidirectional connections between clients and servers with the WebTransport API. Learn to implement real-time features with improved performance.

Use Cases

WebTransport shines in applications where every millisecond counts, but you still need reliability when it matters.

  • Real-time gaming: Fast, unreliable datagrams for position updates with reliable streams for critical game state.
  • Live media streaming: Efficient delivery of audio/video chunks with adaptive quality based on network conditions.
  • Collaborative applications: Bidirectional streams for document editing with concurrent user presence.
  • IoT device communication: Lightweight, persistent connections to multiple devices with varying reliability needs.
  • Large file transfers: Resumable, parallel data transfers with better congestion control than WebSockets.

Coming Soon

We're working on interactive examples that will show you how to use WebTransport in your own projects.

Upcoming examples will demonstrate:

  • Establishing a WebTransport connection with error handling and connection options
  • Sending and receiving datagrams for low-latency, unreliable communication
  • Creating and managing unidirectional streams for efficient one-way data flow
  • Working with bidirectional streams for request-response patterns
  • Implementing graceful connection closure and cleanup
  • Feature detection and fallback strategies for cross-browser compatibility

Note: These examples will require a compatible HTTP/3 server. We're working on providing a public test server or instructions for setting up a local development environment.