24 lines
824 B
TypeScript
Executable File
24 lines
824 B
TypeScript
Executable File
import { PresenceChannel } from './presence-channel';
|
|
import { SocketIoPrivateChannel } from './socketio-private-channel';
|
|
/**
|
|
* This class represents a Socket.io presence channel.
|
|
*/
|
|
export declare class SocketIoPresenceChannel extends SocketIoPrivateChannel implements PresenceChannel {
|
|
/**
|
|
* Register a callback to be called anytime the member list changes.
|
|
*/
|
|
here(callback: Function): SocketIoPresenceChannel;
|
|
/**
|
|
* Listen for someone joining the channel.
|
|
*/
|
|
joining(callback: Function): SocketIoPresenceChannel;
|
|
/**
|
|
* Send a whisper event to other clients in the channel.
|
|
*/
|
|
whisper(eventName: string, data: any): SocketIoPresenceChannel;
|
|
/**
|
|
* Listen for someone leaving the channel.
|
|
*/
|
|
leaving(callback: Function): SocketIoPresenceChannel;
|
|
}
|