Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make WebTransportSendStream & WebTransportReceiveStream transferable. #433

Merged
merged 2 commits into from
Dec 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ It is a {{WritableStream}} of {{Uint8Array}} that can be written to, to send
data to the server.

<pre class="idl">
[Exposed=(Window,Worker), SecureContext]
[Exposed=(Window,Worker), SecureContext, Transferable]
interface WebTransportSendStream : WritableStream {
Promise&lt;WebTransportSendStreamStats&gt; getStats();
};
Expand All @@ -1268,6 +1268,10 @@ interface WebTransportSendStream : WritableStream {
A {{WebTransportSendStream}} is always created by the
[=WebTransportSendStream/create=] procedure.

The {{WebTransportSendStream}}'s [=transfer steps=] and
[=transfer-receiving steps=] are
[those of](https://streams.spec.whatwg.org/#ws-transfer) {{WritableStream}}.

## Methods ## {#send-stream-methods}

: <dfn for="WebTransportSendStream" method>getStats()</dfn>
Expand Down Expand Up @@ -1490,11 +1494,8 @@ data received from the server. {{WebTransportReceiveStream}} is a [=readable byt
and hence it allows
its consumers to use a [=BYOB reader=] as well as a [=default reader=].

A {{WebTransportReceiveStream}} is always created by the
[=WebTransportReceiveStream/create=] procedure.

<pre class="idl">
[Exposed=(Window,Worker), SecureContext]
[Exposed=(Window,Worker), SecureContext, Transferable]
interface WebTransportReceiveStream : ReadableStream {
Promise&lt;WebTransportReceiveStreamStats&gt; getStats();
};
Expand All @@ -1503,6 +1504,10 @@ interface WebTransportReceiveStream : ReadableStream {
A {{WebTransportReceiveStream}} is always created by the
[=WebTransportReceiveStream/create=] procedure.

The {{WebTransportReceiveStream}}'s [=transfer steps=] and
[=transfer-receiving steps=] are
[those of](https://streams.spec.whatwg.org/#rs-transfer) {{ReadableStream}}.

## Methods ## {#receive-stream-methods}

: <dfn for="WebTransportReceiveStream" method>getStats()</dfn>
Expand Down