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

feat(networking): Add WebSocket as extra transport (multitransport) #1428

Merged
merged 4 commits into from Mar 14, 2024

Conversation

b-zee
Copy link
Contributor

@b-zee b-zee commented Mar 11, 2024

  • feat(networking): support fallback WS transport
  • feat(networking): listen on WS addr too

When `websockets` is enabled, we add this with `or_transport` so as to
support both QUIC and WS simultaneously.

The code is a bit refactored into a separate module with files, as it's
a little cleaner with the conditional compilation flags for wasm32.
@joshuef
Copy link
Contributor

joshuef commented Mar 12, 2024

@b-zee does this always give us two transports? Or is it optional? (should it be?)

@JasonPaulGithub JasonPaulGithub added the Small Pull request is small label Mar 12, 2024
@b-zee
Copy link
Contributor Author

b-zee commented Mar 12, 2024

@b-zee does this always give us two transports? Or is it optional? (should it be?)

Only with websockets feature enabled. Would there be a scenario we'd want only WS and no QUIC?

@joshuef
Copy link
Contributor

joshuef commented Mar 14, 2024

Would there be a scenario we'd want only WS and no QUIC?

No, i don't think so. At least not yet.

@joshuef joshuef added this pull request to the merge queue Mar 14, 2024
Merged via the queue into maidsafe:main with commit 4f93614 Mar 14, 2024
56 checks passed
@b-zee b-zee deleted the feat-websocket-multitransport branch March 18, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants