public class PresenceChannelImpl extends PrivateChannelImpl implements PresenceChannel
name, state, SUBSCRIPTION_SUCCESS_EVENT| Constructor and Description |
|---|
PresenceChannelImpl(InternalConnection connection,
String channelName,
Authorizer authorizer,
Factory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String eventName,
SubscriptionEventListener listener)
Binds a
SubscriptionEventListener to an event. |
protected String[] |
getDisallowedNameExpressions() |
User |
getMe()
Gets the user that represents the currently connected client.
|
Set<User> |
getUsers()
Gets a set of users currently subscribed to the channel.
|
void |
onMessage(String event,
String message) |
String |
toString() |
String |
toSubscribeMessage() |
getAuthResponse, triggercompareTo, getEventListener, getName, isSubscribed, setEventListener, toUnsubscribeMessage, unbind, updateStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittriggergetName, isSubscribed, unbindpublic PresenceChannelImpl(InternalConnection connection, String channelName, Authorizer authorizer, Factory factory)
public Set<User> getUsers()
PresenceChannelgetUsers in interface PresenceChannelpublic User getMe()
PresenceChannelgetMe in interface PresenceChannelpublic void onMessage(String event, String message)
onMessage in interface InternalChannelonMessage in class ChannelImplpublic String toSubscribeMessage()
toSubscribeMessage in interface InternalChanneltoSubscribeMessage in class PrivateChannelImplpublic void bind(String eventName, SubscriptionEventListener listener)
ChannelSubscriptionEventListener to an event. The
SubscriptionEventListener will be notified whenever the specified
event is received on this channel.bind in interface Channelbind in class PrivateChannelImpleventName - The name of the event to listen to.listener - A listener to receive notifications when the event is
received.protected String[] getDisallowedNameExpressions()
getDisallowedNameExpressions in class PrivateChannelImplpublic String toString()
toString in class PrivateChannelImplCopyright © 2016 Pusher. All rights reserved.