← Chrome 158 reference · All APIs

v158 · network · covered on mdn

WebTransport draining

Chrome adds the read-only WebTransport.prototype.draining attribute — a stable Promise<undefined> that fulfills once when the server signals that the WebTransport session is going to be gracefully retired (for example via a WT_DRAIN_SESSION capsule or HTTP/3 GOAWAY). Applications can open a replacement session and wrap up in-flight work while existing streams and datagrams remain usable.

Newly interoperable in Chrome 158 (Firefox 155, Safari 26.4, Chrome/Edge 158) — parent webtransport is Baseline Newly available since 2026-03-24

  • Chrome · 158 (desktop, Android, WebView)
  • Edge · 158 (mirrors Chrome in BCD)
  • Firefox · 155
  • Safari · 26.4 (macOS, iOS)

BCD api/WebTransport.json records WebTransport.draining across Chrome 158, Edge 158, Firefox 155, and Safari 26.4 (checked 2026-11-24). The parent WebTransport web-feature on webstatus.dev became Baseline Newly available on 2026-03-24 (predating Chrome 158’s ship of draining), so feature-detect with "draining" in WebTransport.prototype for Chrome < 158.

this feature is documented on MDN

MDN: WebTransport: draining property

MDN’s dedicated reference page is substantive (verified 2026-11-24): it covers the Promise<undefined> return value, session-draining lifecycle semantics, worked examples (migrateOnDraining() paired with closed monitoring), Specifications, and BCD-driven Browser compatibility. gendn doesn’t duplicate that reference here.

Why gendn doesn’t duplicate MDN: this site exists for Chrome features that have no MDN reference yet. When MDN covers a feature completely, the honest page is a pointer to the canonical reference plus the Chrome shipping details MDN doesn’t track — duplicated prose would only drift out of sync.

Chrome 158 details & edge behavior

In Chromium’s web_transport.idl, readonly attribute Promise<undefined> draining is exposed in both Window and Worker secure contexts behind the now-stable WebTransportDraining runtime flag. Key invariants verified by WPT webtransport/draining.https.any.js:

// Feature-detect for Chrome < 158 and older engines
if (typeof WebTransport !== "undefined" && "draining" in WebTransport.prototype) {
  const wt = new WebTransport("https://example.com:4433/wt");
  wt.draining.then(async () => {
    // Server requested graceful retirement; open a replacement session
    // while existing streams remain active.
    const next = new WebTransport("https://example.com:4433/wt");
    await next.ready;
    wt.close();
  });
  await wt.ready;
}
Source: W3C WebTransport — draining & [[Draining]] slot; WPT draining.https.any.js; ChromeStatus 6427766428925952.

Browser compatibility

WebTransport.draining support from BCD api/WebTransport.json (fetched 2026-11-24).
BrowserdrainingNotes
Chrome158Desktop, Android, and Android WebView per ChromeStatus 6427766428925952 and BCD
Edge158Mirrors Chrome in BCD
Firefox155Desktop and Android (Bugzilla 2007160)
Safari26.4macOS and iOS (WebKit bug 302762)
Source: BCD api/WebTransport.json (read 2026-11-24); ChromeStatus API record.

Quick reference

Chrome 158 shipping metadata for WebTransport.draining
WebIDLreadonly attribute Promise<undefined> draining; on WebTransport ([Exposed=(Window, Worker), SecureContext]) — W3C TR / Editor’s Draft
Chrome statusFiled under “Enabled by default” in the milestone=158 listing (desktop, Android, WebView 158; dev trial from 153 behind chrome://flags/#enable-experimental-web-platform-features). Blink flag WebTransportDraining is "stable" in runtime_enabled_features.json5; Finch name WebTransportDraining
Intent & bugblink-dev Intent to Ship · crbug 564353368
Web platform testswpt.fyi — webtransport/draining.https.any.html (test source)
Explainer & InteropWebTransport explainer §11 — Handling Session Draining · Interop 2026 WebTransport proposal
ChromeStatus6427766428925952 — WebTransport draining
Source: MDN WebTransport.draining (verified 2026-11-24); ChromeStatus 6427766428925952.

References