-
Notifications
You must be signed in to change notification settings - Fork 230
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
about disconnect #77
Comments
You can check the status with The client will automatically reconnect, with some variation of behavior depending on the values of |
What I do is to use the
...and then to handle exceptions on the future, using
Looks a bit cumbersome, especially because the exception I'm interested in is a nested exception, but works ;) The nested exception could also be a |
My answer was concerning the current 2.0.0-RC3 version of the library. It seems you're asking about the 1.2.x version? I'm not sure the answer changes much. I can probably add a listener/callback to |
Understood. I have determined online status based on the isConnected() method and set the connectPersistent property to true, and reconnectLazy to false. Setting reconnectLazy to false means it will automatically reconnect if the connection is lost, right? Instead of relying on manual triggering; what is the purpose of the connectPersistent property? |
When
|
okay,thanks |
I will soon add a connection listener callback as well: #78 |
the issue has been solved |
How can I detect a disconnected connection? I need to perform some business-level operations when the connection is lost, as well as attempt to reconnect.
The text was updated successfully, but these errors were encountered: