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

Ws reconnect #33

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Ws reconnect #33

wants to merge 7 commits into from

Conversation

Fogapod
Copy link
Contributor

@Fogapod Fogapod commented May 3, 2024

This adds a replacement for event_loop from binance lib that responds to pings and sends pings.
If Pong was not seen in PING_INTEVAL * 2 (10 seconds), ws will switch to disconnected state.

Resolves: #30

This includes #32 but its likely not needed since changes are outside the lib

@@ -43,6 +49,9 @@ directories-next = "2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = ["Window", "Storage"] }

[patch.crates-io]
binance-rs-async = { git = "https://github.com/Fogapod/binance-rs-async", rev = "fb2a1daf1063d3b7edb551d4dc8ef8d4d7197538" }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this patch shouldn't be needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it removes a few dependencies from that lib

This was referenced May 10, 2024
@x86y x86y force-pushed the master branch 12 times, most recently from 2705541 to d9709a7 Compare June 10, 2024 09:29
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

Successfully merging this pull request may close these issues.

websocket reconnect
2 participants