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

com.pusher.client.channel.PresenceChannel Maven / Gradle / Ivy

There is a newer version: 2.4.4
Show newest version
package com.pusher.client.channel;

import java.util.Set;

/**
 * An object that represents a Pusher presence channel. An implementation of
 * this interface is returned when you call
 * {@link com.pusher.client.Pusher#subscribePresence(String)} or
 * {@link com.pusher.client.Pusher#subscribePresence(String, PresenceChannelEventListener, String...)}
 * .
 */
public interface PresenceChannel extends PrivateChannel {

    /**
     * Gets a set of users currently subscribed to the channel.
     *
     * @return The users.
     */
    Set getUsers();

    /**
     * Gets the user that represents the currently connected client.
     *
     * @return A user.
     */
    User getMe();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy