com.pusher.client.channel.PrivateChannel.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pusher-java-client Show documentation
Show all versions of pusher-java-client Show documentation
This is a Java client library for Pusher, targeted at core Java and Android.
PrivateChannel (Pusher Java Websocket API)
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 and Description
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.
-
Methods inherited from interface com.pusher.client.channel.Channel
bind, getName, isSubscribed, unbind
-
-
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 a
client-
prefix.
data
- The data to be triggered with the event.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy