w3c / webtransport

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

Relative URL in WebTransport constructor #596

Closed devsnek closed 7 months ago

devsnek commented 8 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 7 months ago

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