w3c / webtransport

WebTransport is a web API for flexible data transport
https://w3c.github.io/webtransport/
Other
838 stars 51 forks source link

Relative URL in WebTransport constructor #596

Closed devsnek closed 5 months ago

devsnek commented 6 months ago

WebSocket recently added support for relative URLs: https://github.com/whatwg/websockets/commit/771cd4ffa1385c0b66ac17d0e82015f354359e36

If there isn't any particular reason that WebTransport does not allow relative URLs, it might be a nice quality of life improvement for developers to allow them.

jan-ivar commented 5 months ago

Good idea (especially with pooling) and seems uncontroversial. I'll add a PR for discussion.