All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src-html.com.pusher.client.Client.html Maven / Gradle / Ivy




Source code



001package com.pusher.client;
002
003import com.pusher.client.channel.Channel;
004import com.pusher.client.channel.ChannelEventListener;
005import com.pusher.client.channel.PresenceChannel;
006import com.pusher.client.channel.PresenceChannelEventListener;
007import com.pusher.client.channel.PrivateChannel;
008import com.pusher.client.channel.PrivateChannelEventListener;
009import com.pusher.client.connection.Connection;
010import com.pusher.client.connection.ConnectionEventListener;
011import com.pusher.client.connection.ConnectionState;
012
013/**
014 * Created by jamiepatel on 09/06/2016.
015 */
016public interface Client {
017    Connection getConnection();
018    void connect();
019    void connect(final ConnectionEventListener eventListener, ConnectionState... connectionStates);
020    void disconnect();
021    Channel subscribe(final String channelName);
022    Channel subscribe(final String channelName, final ChannelEventListener listener, final String... eventNames);
023    PrivateChannel subscribePrivate(final String channelName);
024    PrivateChannel subscribePrivate(final String channelName, final PrivateChannelEventListener listener,
025                                    final String... eventNames);
026    PresenceChannel subscribePresence(final String channelName);
027    PresenceChannel subscribePresence(final String channelName, final PresenceChannelEventListener listener,
028                                      final String... eventNames);
029    void unsubscribe(final String channelName);
030    Channel getChannel(String channelName);
031    PrivateChannel getPrivateChannel(String channelName);
032    PresenceChannel getPresenceChannel(String channelName);
033}
































































© 2015 - 2025 Weber Informatics LLC | Privacy Policy