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

Doesn't reconnect #9

Open
Kav91 opened this issue Oct 25, 2016 · 3 comments
Open

Doesn't reconnect #9

Kav91 opened this issue Oct 25, 2016 · 3 comments

Comments

@Kav91
Copy link

Kav91 commented Oct 25, 2016

Using react 15.x

If my server running the websocket is disconnected, it doesn't attempt to reconnect at all.
With debug mode on, the last message is just Websocket disconnected.

Any ideas?

@vincent714
Copy link

@Kav91 I have same issue. Does any one can help?

@Kav91
Copy link
Author

Kav91 commented Nov 16, 2016

@vincent714 I ended up implementing https://github.com/joewalnes/reconnecting-websocket into my react project instead. Works well, haven't had any issues. Just had to set the unmount for it when switching to alternate pages that dont need it.

@vincent714
Copy link

@Kav91 (batman) Thank you

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