Package io.ably.lib.realtime
Interface ConnectionStateListener
- All Known Implementing Classes:
ConnectionStateListener.Filter,ConnectionStateListener.Multicaster
public interface ConnectionStateListener
An interface whereby a client may be notified of state changes for a connection.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConnectionStateListener.ConnectionStateChangeContainsConnectionStatechange information emitted by theConnectionobject.static classConnectionStateListener.Filterstatic classConnectionStateListener.Multicaster -
Method Summary
Modifier and Type Method Description voidonConnectionStateChanged(ConnectionStateListener.ConnectionStateChange state)Called when connection state changes.
-
Method Details
-
onConnectionStateChanged
Called when connection state changes.- Parameters:
state- information about the new state. CheckConnectionState- for all states available.
-