files/en-us/web/api/webtransportreceivestream/index.md
{{APIRef("WebTransport API")}}{{securecontext_header}} {{AvailableInWorkers}}
The WebTransportReceiveStream interface of the {{domxref("WebTransport API", "WebTransport API", "", "nocode")}} is a {{domxref("ReadableStream")}} that can be used to read from an incoming unidirectional or bidirectional {{domxref("WebTransport")}} stream.
The stream is a readable byte stream of Uint8Array, and can be consumed using either a BYOB reader (ReadableStreamBYOBReader) or the default reader (ReadableStreamDefaultReader).
Objects of this type are not constructed directly.
Instead they are obtained using the WebTransport.incomingUnidirectionalStream property.
WebTransportReceiveStream is a transferable object.
{{InheritanceDiagram}}
Inherits properties from its parent interface, {{domxref("ReadableStream")}}.
Also inherits properties from its parent interface, {{domxref("ReadableStream")}}.
See WebTransport.incomingUnidirectionalStreams for an example of how to get a {{domxref("ReadableStream")}} of WebTransportReceiveStream objects.
{{Specifications}}
{{Compat}}