-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
36 lines (23 loc) · 1.37 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: "WebTransportDatagramDuplexStream: readable property"
short-title: readable
slug: Web/API/WebTransportDatagramDuplexStream/readable
page-type: web-api-instance-property
browser-compat: api.WebTransportDatagramDuplexStream.readable
---
{{APIRef("WebTransport API")}}{{SecureContext_Header}} {{AvailableInWorkers}}
The **`readable`** read-only property of the {{domxref("WebTransportDatagramDuplexStream")}} interface returns a {{domxref("ReadableStream")}} instance that can be used to unreliably read incoming datagrams from 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
A {{domxref("ReadableStream")}}.
## Examples
See the main {{domxref("WebTransportDatagramDuplexStream")}} interface page.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- [Using WebTransport](https://developer.chrome.com/docs/capabilities/web-apis/webtransport)
- {{domxref("WebSockets API", "WebSockets API", "", "nocode")}}
- {{domxref("Streams API", "Streams API", "", "nocode")}}
- [WebTransport over HTTP/3](https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-http3/)