Skip to content

Ws reconnect#33

Open
Fogapod wants to merge 7 commits into
x86y:masterfrom
Fogapod:ws-reconnect
Open

Ws reconnect#33
Fogapod wants to merge 7 commits into
x86y:masterfrom
Fogapod:ws-reconnect

Conversation

@Fogapod
Copy link
Copy Markdown
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

Comment thread Cargo.toml
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
Copy Markdown
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
Copy Markdown
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