Client applications should implement this interface if they wish to receive notifications when the state of a {@link Connection} changes or an error is thrown.
Implementations of this interface can be bound to the connection by calling {@link Connection#bind(ConnectionState,ConnectionEventListener)}. The connection itself can be retrieved from the {@link com.pusher.client.Pusher} object by calling{@link com.pusher.client.Pusher#getConnection()}.
Alternatively, you can bind your implementation of the interface and connect at the same time by calling {@link com.pusher.client.Pusher#connect(ConnectionEventListener,ConnectionState)}.
|
|
|
|