src-html.com.pusher.client.channel.PrivateChannel.html Maven / Gradle / Ivy
Source code
001package com.pusher.client.channel;
002
003/**
004 * Represents a subscription to a private channel.
005 */
006public interface PrivateChannel extends Channel {
007
008 /**
009 * Once subscribed it is possible to trigger client events on a private
010 * channel as long as client events have been activated for the a Pusher
011 * application. There are a number of restrictions enforced with client
012 * events. For full details see the <a
013 * href="http://pusher.com/docs/client_events">client events
014 * documentation</a>.
015 *
016 * @param eventName
017 * The name of the event to trigger. It must have a
018 * <code>client-</code> prefix.
019 * @param data
020 * The data to be triggered with the event.
021 */
022 void trigger(String eventName, String data);
023}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy