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

Reconnect logic #37

Open
0xAlcibiades opened this issue Dec 24, 2024 · 1 comment
Open

Reconnect logic #37

0xAlcibiades opened this issue Dec 24, 2024 · 1 comment

Comments

@0xAlcibiades
Copy link

It's unclear on a readthrough what the client will do in the scenario of a reconnect.

@jgraef
Copy link
Owner

jgraef commented Dec 28, 2024

This crate doesn't do automatic reconnects. You'll have to handle that in application logic right now.

Since it's a very commonly used mechanism, we could think about adding a wrapper to WebSocket that does automatic reconnects. But since websockets are stateful, the reconnect code would have to call application code to setup the connection correctly.

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

2 participants