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