Package com.pusher.client.channel
Interface PrivateChannel
-
- All Superinterfaces:
Channel
- All Known Subinterfaces:
PresenceChannel
public interface PrivateChannel extends Channel
Represents a subscription to a private channel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtrigger(java.lang.String eventName, java.lang.String data)Once subscribed it is possible to trigger client events on a private channel as long as client events have been activated for the a Pusher application.-
Methods inherited from interface com.pusher.client.channel.Channel
bind, bindGlobal, getName, isSubscribed, unbind, unbindGlobal
-
-
-
-
Method Detail
-
trigger
void trigger(java.lang.String eventName, java.lang.String data)
Once subscribed it is possible to trigger client events on a private channel as long as client events have been activated for the a Pusher application. There are a number of restrictions enforced with client events. For full details see the client events documentation.- Parameters:
eventName- The name of the event to trigger. It must have aclient-prefix.data- The data to be triggered with the event.
-
-