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 after disconnecting #12

Closed
advancedlogic opened this issue Aug 21, 2017 · 2 comments
Closed

Reconnect after disconnecting #12

advancedlogic opened this issue Aug 21, 2017 · 2 comments

Comments

@advancedlogic
Copy link

Hi,
is there a way to reconnect the WS after a disconnection (for example after a reboot of the server)?
Thanks

@nmeylan
Copy link
Contributor

nmeylan commented Aug 24, 2017

Hi @advancedlogic I have implemented a strategy to auto reconnect my websocket after a disconnection. It work well, but I'm not proud of my solution. You can find it here https://gist.github.com/nmeylan/ee3f85346aa75907558b8cff9e3ef328

I don't like it because I rely on the current implementation of this lib, and if it changes my code will be broken

However I would like to see a built-in solution. Maybe I will made a pull request for this if I have the time.

Hope this helps you

@advancedlogic
Copy link
Author

thanks

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