WebTransport: reliability property
The reliability
read-only property of the WebTransport
interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
Value
A string with one of the following values:
-
pending
-
The connection has not yet been established. The reliability is not yet known.
-
reliable-only
-
The connection only supports reliable transports.
-
supports-unreliable
-
The connection supports both unreliable and reliable transports.
Examples
const url = "https://example.com:4999/wt";
async function initTransport(url) {
const transport = new WebTransport(url);
await transport.ready;
if (transport.reliability == "reliable-only") {
} else {
}
}
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
reliability |
No |
No |
114 |
No |
No |
No |
No |
No |
114 |
No |
No |
No |