WebTransportDatagramDuplexStream: writable property
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Web Workers.
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The writable
read-only property of the WebTransportDatagramDuplexStream
interface returns a WritableStream
instance that can be used to unreliably write outgoing datagrams to the stream.
"Unreliably" means that transmission of data is not guaranteed, nor is arrival in a specific order. This is fine in some situations and provides very fast delivery. For example, you might want to transmit regular game state updates where each message supersedes the last one that arrives, and order is not important.
Value
Examples
See the main WebTransportDatagramDuplexStream
interface page.
Specifications
No specification found
No specification data found for api.WebTransportDatagramDuplexStream.writable
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.