WebTransport

WebTransport

Glossary

WebTransport is a modern web API for real-time communication between client and server building on QUIC and HTTP/3. It was designed to overcome structural limitations of WebSocket, above all so-called head-of-line blocking, where a single lost data packet slows an entire TCP connection. WebTransport instead enables several independent, parallel data streams in a single connection.

The technical foundation: QUIC instead of TCP

Unlike WebSocket, which sits on TCP, WebTransport uses QUIC (standardised in RFC 9000) as its transport basis – the same protocol HTTP/3 is based on. QUIC technically runs over UDP but brings its own mechanisms for reliability and encryption. The decisive advantage: several data streams within a QUIC connection are fully independent of each other – if one stream loses a packet, the others don’t have to wait.

The three core building blocks of WebTransport

Building blockReliabilityOrderTypical use
Bidirectional streamsReliableGuaranteedStateful communication in both directions
Unidirectional streamsReliableGuaranteedOne-way, but complete data transfer
DatagramsUnreliableNot guaranteedMinimal latency, occasional packet loss tolerable

These three building blocks can be used in parallel within the same connection – a video stream can, say, use loss-tolerant datagrams while simultaneously transmitted control commands use reliable streams.

A simple code example

const transport = new WebTransport("https://example.com:4433/webtransport");
await transport.ready;

// A reliable, bidirectional stream
const stream = await transport.createBidirectionalStream();

// An unreliable, low-latency datagram
const writer = transport.datagrams.writable.getWriter();
await writer.write(new Uint8Array([1, 2, 3]));

WebTransport vs. WebSocket vs. server-sent events

WebTransportWebSocketServer-sent events
Transport basisQUIC / HTTP/3TCPHTTP
Head-of-line blockingNo, streams independentYes, inherent to TCPNot relevant (unidirectional)
Unreliable transfer possibleYes (datagrams)NoNo
DirectionBidirectionalBidirectionalServer → client only
Maturity / prevalenceNewer, growing adoptionEstablished, broad supportEstablished, simple implementation

Browser support: baseline since 2026

For a long time, Safari was the big missing building block in WebTransport support. That changed in early 2026: with Safari’s support, WebTransport has reached baseline status and now runs without a polyfill in all current versions of Chrome, Edge, Firefox and Safari. For broad audiences with older browser versions, a precise check of the actual version coverage remains advisable before deploying WebTransport as the sole solution without a fallback.

Typical use cases

WebTransport plays to its strengths above all where classic WebSocket reaches its limits: cloud gaming with minimal input latency, live video streaming, real-time collaboration tools with many parallel data streams and applications needing reliable and loss-tolerant transfer simultaneously. When developing such real-time applications, we deliberately pick the technically fitting protocol by actual need – as part of our custom software development.

Conclusion

WebTransport is the consistent technical evolution of what WebSocket delivered for the TCP era over a decade ago – now for a QUIC-based web platform. With baseline support reached, it has definitively grown out of the experimental niche in 2026, even though WebSocket remains a solid, proven choice for many existing use cases. Which protocol makes sense for your project is something we’re happy to work out as part of our custom software development or in an informal chat, with no strings attached.

Häufige Fragen

Is WebTransport a replacement for WebSocket?
Not generally, but for many use cases a technically more modern alternative. WebTransport builds on QUIC instead of TCP and thereby avoids head-of-line blocking between several parallel data streams – a structural problem WebSocket, as a TCP-based protocol, can’t solve. Existing, working WebSocket implementations therefore don’t have to be replaced, but for new projects with high real-time ambitions, a look at WebTransport pays off.
What's the difference between streams and datagrams in WebTransport?
Streams transfer data reliably and in the correct order – comparable to TCP, but without a single blocked stream slowing the other parallel streams down. Datagrams, in contrast, transfer data unreliably and unordered, similar to UDP, but with minimal latency. Which of the two transfer modes makes sense depends on whether completeness or speed matters more.
Does WebTransport now work in all browsers?
Yes, largely by now. After Safari was long the last major browser missing, WebTransport reached baseline status with Safari’s support in early 2026 and now runs in all current versions of Chrome, Edge, Firefox and Safari without a polyfill. For projects with older browser versions in the target audience, a look at the exact version coverage still pays off.
Why does WebTransport build on QUIC instead of TCP?
Because TCP has a structural problem: if a single packet is lost, the entire connection waits for its retransmission before continuing – so-called head-of-line blocking. QUIC, the technical foundation of HTTP/3, transfers several data streams independently of each other, so a lost packet in one stream doesn’t slow the others down.
Which use cases suit WebTransport particularly well?
Applications with high real-time ambitions and many parallel data streams: cloud gaming, low-latency live video streaming, real-time collaboration tools and applications needing both reliable and loss-tolerant data transfer simultaneously, say, video streams (loss-tolerant) combined with control commands (reliable) in the same connection.
Do I have to migrate existing WebSocket connections to WebTransport now?
In most cases not urgently. A well-working WebSocket implementation continues to deliver reliable results for many use cases. WebTransport pays off above all for new projects with particularly high real-time and performance ambitions, or when head-of-line blocking in WebSocket has already become a tangible problem.
← Back to glossary
HOMEGLOSSARYWEBTRANSPORT