Skip to content

Commit

Permalink
Add notes on receiver-side stream availability
Browse files Browse the repository at this point in the history
Fixes #618
  • Loading branch information
wilaw authored Oct 21, 2024
1 parent 3a324bf commit 1dc86be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -994,11 +994,17 @@ these steps.
: <dfn for="WebTransport" attribute>incomingBidirectionalStreams</dfn>
:: Returns a {{ReadableStream}} of {{WebTransportBidirectionalStream}}s that have been
received from the server.

Note: whether the incoming streams already have data on them will depend on server behavior.

The getter steps for the `incomingBidirectionalStreams` attribute SHALL be:
1. Return [=this=]'s {{[[IncomingBidirectionalStreams]]}}.
: <dfn for="WebTransport" attribute>incomingUnidirectionalStreams</dfn>
:: A {{ReadableStream}} of unidirectional streams, each represented by a
{{WebTransportReceiveStream}}, that have been received from the server.

Note: whether the incoming streams already have data on them will depend on server behavior.

The getter steps for `incomingUnidirectionalStreams` are:
1. Return [=this=].{{[[IncomingUnidirectionalStreams]]}}.

Expand Down Expand Up @@ -1110,6 +1116,8 @@ the application will receive the number of streams it anticipates.
stream. Note that the mere creation of a stream is not immediately visible to the peer until
it is used to send data.

Note: there is no expectation that the server will be aware of the stream until data is sent on it.

When `createBidirectionalStream` is called, the user agent MUST run the
following steps:

Expand Down Expand Up @@ -1148,6 +1156,8 @@ the application will receive the number of streams it anticipates.
that the mere creation of a stream is not immediately visible to the server until it is used
to send data.

Note: there is no expectation that the server will be aware of the stream until data is sent on it.

When `createUnidirectionalStream()` method is called, the user agent MUST
run the following steps:
1. Let |transport| be [=this=].
Expand Down

0 comments on commit 1dc86be

Please sign in to comment.