Skip to content

Commit

Permalink
Restore the default writable for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Nov 20, 2024
1 parent 98e995c commit 9e88485
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ A <dfn interface>WebTransportDatagramDuplexStream</dfn> is a generic duplex stre
interface WebTransportDatagramDuplexStream {
WebTransportDatagramsWritable createWritable();
readonly attribute ReadableStream readable;
readonly attribute WritableStream writable;

readonly attribute unsigned long maxDatagramSize;
attribute unrestricted double? incomingMaxAge;
Expand All @@ -479,6 +480,10 @@ A {{WebTransportDatagramDuplexStream}} object has the following internal slots.
<td><dfn>`[[Readable]]`</dfn>
<td class="non-normative">A {{ReadableStream}} for incoming datagrams.
</tr>
<tr>
<td><dfn>`[[Writable]]`</dfn>
<td class="non-normative">A default {{WebTransportDatagramsWritable}} for outgoing datagrams.
</tr>
<tr>
<td><dfn>`[[IncomingDatagramsQueue]]`</dfn>
<td class="non-normative">A queue of pairs of an incoming datagram and a timestamp.
Expand Down Expand Up @@ -526,6 +531,8 @@ The user agent MAY update {{[[OutgoingMaxDatagramSize]]}} for any {{WebTransport
1. Let |stream| be a [=new=] {{WebTransportDatagramDuplexStream}}, with:
: {{WebTransportDatagramDuplexStream/[[Readable]]}}
:: |readable|
: {{WebTransportDatagramDuplexStream/[[Writable]]}}
:: |writable|
: {{[[IncomingDatagramsQueue]]}}
:: an empty queue
: {{[[IncomingDatagramsPullPromise]]}}
Expand Down Expand Up @@ -565,6 +572,10 @@ The user agent MAY update {{[[OutgoingMaxDatagramSize]]}} for any {{WebTransport
:: The getter steps are:
1. Return [=this=].{{WebTransportDatagramDuplexStream/[[Readable]]}}.

: <dfn for="WebTransportDatagramDuplexStream" attribute>writable</dfn>
:: The getter steps are:
1. Return [=this=].{{WebTransportDatagramDuplexStream/[[Writable]]}}.

: <dfn for="WebTransportDatagramDuplexStream" attribute>incomingMaxAge</dfn>
:: The getter steps are:
1. Return [=this=].{{[[IncomingDatagramsExpirationDuration]]}}.
Expand Down

0 comments on commit 9e88485

Please sign in to comment.