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 time out does not work #25

Open
Mrey3000 opened this issue Nov 29, 2021 · 3 comments
Open

Reconnect after time out does not work #25

Mrey3000 opened this issue Nov 29, 2021 · 3 comments

Comments

@Mrey3000
Copy link

I added enableAutomaticReconnection(5000) but after i get this exception (System.err: tech.gusavila92.websocketclient.exceptions.InvalidServerHandshakeException: Invalid status code. Expected 101, received: 503)
the web socket does not retry to connect after 5000ms

@gusavila92
Copy link
Owner

this client does not try to reconnect if the handshake fails, only after a succesful connection when the internet becomes unstable and the connection is dropped. This is left for a future enhancement

@gamer0mega
Copy link

this client does not try to reconnect if the handshake fails, only after a succesful connection when the internet becomes unstable and the connection is dropped. This is left for a future enhancement

any update? if the client connects successfully one time, and then disconnects => reconnects => gets a handshake error it doesnt reconnect again and it can be really annoying if the proxy to the server returns a 502 when the server is down

@gamer0mega
Copy link

and even if i catch the exception, and try to use the connect method with a timer, the client simply does not even try to connect again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants