Client applications should implement this interface if they want to be notified when events are received on a public or private channel.
To bind your implementation of this interface to a channel, either:
- Call {@link com.pusher.client.Pusher#subscribe(String)} to subscribe and receive an instance of {@link Channel}.
- Call {@link Channel#bind(String,ChannelEventListener)} to bind your listener to a specified event.
Or, call {@link com.pusher.client.Pusher#subscribe(String,ChannelEventListener,String)} to subscribe to a channel andbind your listener to one or more events at the same time.