Skip to content

WebTransportDatagramsWritable and friends#44383

Open
hamishwillee wants to merge 3 commits into
mdn:mainfrom
hamishwillee:webtransportdatagramswritable_and_friends
Open

WebTransportDatagramsWritable and friends#44383
hamishwillee wants to merge 3 commits into
mdn:mainfrom
hamishwillee:webtransportdatagramswritable_and_friends

Conversation

@hamishwillee

Copy link
Copy Markdown
Collaborator

This documents most of the new WebTransport support for prioritizing streams/datagrams within a sendGroup based on sendOrder for the respective stream objects - such as WebTransportDatagramsWritable. This is recently implemented in Safari.

I started on this when reviewing #44317 because that wants to refer to an undocumented method I needed to understand. Talking about pulling a thread...

Anyway, I believe this is correct and useful. The only thing missing is the stream equivalent of WebTransportDatagramsWritable - WebTransportSendStream.

@hamishwillee hamishwillee requested review from a team as code owners June 8, 2026 08:55
@hamishwillee hamishwillee requested review from chrisdavidmills and pepelsbey and removed request for a team June 8, 2026 08:55
@github-actions github-actions Bot added Content:WebAPI Web API docs size/l [PR only] 501-1000 LoC changed labels Jun 8, 2026
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
Preview URLs (9 pages)
External URLs (7)

URL: /en-US/docs/Web/API/WebTransport/createSendGroup
Title: WebTransport: createSendGroup() method


URL: /en-US/docs/Web/API/WebTransportDatagramDuplexStream/createWritable
Title: WebTransportDatagramDuplexStream: createWritable() method


URL: /en-US/docs/Web/API/WebTransportDatagramsWritable
Title: WebTransportDatagramsWritable


URL: /en-US/docs/Web/API/WebTransportDatagramsWritable/sendGroup
Title: WebTransportDatagramsWritable: sendGroup property


URL: /en-US/docs/Web/API/WebTransportDatagramsWritable/sendOrder
Title: WebTransportDatagramsWritable: sendOrder property


URL: /en-US/docs/Web/API/WebTransportSendGroup
Title: WebTransportSendGroup


URL: /en-US/docs/Web/API/WebTransportSendGroup/getStats
Title: WebTransportSendGroup: getStats() method

(comment last updated: 2026-06-09 06:12:12)

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hamishwillee! I've read through all of these and provided some commentary. Looking mostly pretty good and makes sense.

Comment thread files/en-us/web/api/webtransport/createsendgroup/index.md Outdated
Comment thread files/en-us/web/api/webtransport/createsendgroup/index.md
Comment thread files/en-us/web/api/webtransport/datagrams/index.md Outdated
Comment thread files/en-us/web/api/webtransport/datagrams/index.md Outdated
Comment thread files/en-us/web/api/webtransportsendgroup/index.md
Comment thread files/en-us/web/api/webtransportdatagramduplexstream/index.md Outdated
Comment thread files/en-us/web/api/webtransportdatagramswritable/index.md
Comment thread files/en-us/web/api/webtransportdatagramswritable/sendgroup/index.md Outdated
Comment thread files/en-us/web/api/webtransport/datagrams/index.md Outdated
Comment thread files/en-us/web/api/webtransportdatagramduplexstream/index.md Outdated
Comment thread files/en-us/web/api/webtransportsendgroup/index.md
Comment thread files/en-us/web/api/webtransportsendgroup/index.md
Comment thread files/en-us/web/api/webtransportsendgroup/index.md
Comment thread files/en-us/web/api/webtransport/datagrams/index.md Outdated
Comment thread files/en-us/web/api/webtransportdatagramduplexstream/createwritable/index.md Outdated
@hamishwillee

Copy link
Copy Markdown
Collaborator Author

Thanks @chrisdavidmills - Accepted almost all of them. Should be good for another look.

Comment on lines +25 to +27
typeof transport.datagrams.createWritable === "function"
? transport.datagrams.createWritable()
: transport.datagrams.writable; // Deprecated and non-standard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
typeof transport.datagrams.createWritable === "function"
? transport.datagrams.createWritable()
: transport.datagrams.writable; // Deprecated and non-standard
typeof transport.datagrams.createWritable === "function"
? transport.datagrams.createWritable()
: transport.datagrams.writable; // Deprecated and non-standard

Comment on lines +46 to +48
typeof transport.datagrams.createWritable === "function"
? transport.datagrams.createWritable()
: transport.datagrams.writable; // Deprecated and non-standard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
typeof transport.datagrams.createWritable === "function"
? transport.datagrams.createWritable()
: transport.datagrams.writable; // Deprecated and non-standard
typeof transport.datagrams.createWritable === "function"
? transport.datagrams.createWritable()
: transport.datagrams.writable; // Deprecated and non-standard

@hamishwillee hamishwillee force-pushed the webtransportdatagramswritable_and_friends branch from aacf0d8 to b775180 Compare June 9, 2026 06:10
@github-actions github-actions Bot added size/m [PR only] 51-500 LoC changed and removed size/l [PR only] 501-1000 LoC changed labels Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants