Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebTransport: Add WebTransport as a new transport #703

Closed
thernstig opened this issue Mar 30, 2023 · 4 comments
Closed

WebTransport: Add WebTransport as a new transport #703

thernstig opened this issue Mar 30, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@thernstig
Copy link

thernstig commented Mar 30, 2023

Is your feature request related to a problem? Please describe.
WebTransport (https://developer.mozilla.org/en-US/docs/Web/API/WebTransport) is a new HTTP/3 protocol that promises even faster connection time and solving various issues with WebSockets.

It would be cool if socket.io could transparently start implementing webtransport as a new transport option. Still keeping the same nice fallback mechanism that exists today between WebSockets and HTTP long-polling.

Describe the solution you'd like
Add a new transports option useable in client initialization: https://socket.io/docs/v3/client-initialization/#transports

Describe alternatives you've considered
Using WebTransport directly without socket.io. But that completely misses the cool API that socket.io provides.

@thernstig thernstig added the enhancement New feature or request label Mar 30, 2023
@darrachequesne
Copy link
Member

darrachequesne commented Mar 31, 2023

Hi! @thernstig ! This is indeed on our radar. Adding this transport on the client-side should be quite straightforward, but the server will require a bit more work.

Related:

µWebSockets.js does already support HTTP/3 though: https://github.com/uNetworking/uWebSockets/releases/tag/v20.16.0

@thernstig
Copy link
Author

@darrachequesne that is great. I could not find an issue, hence why I created one. Looking forward to it in the future!

@darrachequesne
Copy link
Member

Support for WebTransport has been added in 7195c0f, released in 6.5.0.

We will publish a new version of the socket.io-client package soon.

Thanks for the heads-up! 👍

@thernstig
Copy link
Author

Now if only Safari could get with the program: https://caniuse.com/webtransport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants