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

chore: Support connecting to nodes using web sockets. #2025

Closed
MartinquaXD opened this issue Oct 30, 2023 · 1 comment
Closed

chore: Support connecting to nodes using web sockets. #2025

MartinquaXD opened this issue Oct 30, 2023 · 1 comment

Comments

@MartinquaXD
Copy link
Contributor

Background

Currently we are doing all the node requests using HTTP. That means for every request our backend has to do another HTTP handshake. Alternatively we could also consider using web sockets. With those we only have to do a single handshake on system start and therefore reduce a bunch of latency caused by these handshakes.
But maybe more importantly it seems that the support for websockets might be better in the eco system than the support for plain HTTP requests.

Details

We should add support for web sockets RPC URLs. To remain flexible in case we encounter issues with WS we should still support using HTTP URLs. Maintaining both should be no issue because there is barely no active development on those protocol components.

Acceptance criteria

We should be able to replace all http:// RPC URLs with ws:// URLs.

Copy link

github-actions bot commented Feb 8, 2024

This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed.

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

No branches or pull requests

1 participant