← 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.
this feature is documented on MDN
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:
- Same-object promise before
ready:wt.drainingis created during construction ([[Draining]]internal slot), returns the identicalPromiseinstance on repeated reads, and may be observed beforewt.readyfulfills. - Session stays usable after draining: fulfilling
wt.drainingdoes not settlewt.closedand does not stop either peer from opening new unidirectional or bidirectional streams or exchanging datagrams. - Stays pending on normal close without drain signal: if the session closes via
wt.close()without the server sending aWT_DRAIN_SESSIONcapsule,wt.drainingremains pending rather than settling.
// 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
| Browser | draining | Notes |
|---|---|---|
| Chrome | 158 | Desktop, Android, and Android WebView per ChromeStatus 6427766428925952 and BCD |
| Edge | 158 | Mirrors Chrome in BCD |
| Firefox | 155 | Desktop and Android (Bugzilla 2007160) |
| Safari | 26.4 | macOS and iOS (WebKit bug 302762) |
api/WebTransport.json (read 2026-11-24); ChromeStatus API record.
Quick reference
| WebIDL | readonly attribute Promise<undefined> draining; on WebTransport ([Exposed=(Window, Worker), SecureContext]) — W3C TR / Editor’s Draft |
|---|---|
| Chrome status | Filed 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 & bug | blink-dev Intent to Ship · crbug 564353368 |
| Web platform tests | wpt.fyi — webtransport/draining.https.any.html (test source) |
| Explainer & Interop | WebTransport explainer §11 — Handling Session Draining · Interop 2026 WebTransport proposal |
| ChromeStatus | 6427766428925952 — WebTransport draining |
WebTransport.draining (verified 2026-11-24); ChromeStatus 6427766428925952.
References
- MDN —
WebTransport.draining(canonical reference) · MDN —WebTransport· MDN — WebTransport API - W3C WebTransport Editor’s Draft —
draining· W3C TR Candidate Recommendation - WebTransport explainer — Handling session draining
- Chrome Platform Status — WebTransport draining (6427766428925952) (API record)
- blink-dev — Intent to Ship · crbug 564353368
- BCD —
api/WebTransport.json· webstatus.dev — WebTransport