Interface ConnectionStateListener
A listener that will be notified whenever the ConnectionState changes. Can be added via
DeepstreamClient.addConnectionChangeListener(listener) and removed via DeepstreamClient.removeConnectionChangeListener(listener).
Learn more about connections states and connectivity issues
Methods
void connectionStateChanged(ConnectionState connectionState)
{{#table mode="java-api"}}
-
arg: state
typ: ConnectionState
des: The current connection state
{{/table}}Called with the new updated connection state. Useful for enabling applications to respond to different scenarios, like ConnectionState.ERROR if an error occurs, or ConnectionState.RECONNECTING if the connection drops.