UNPKG

laravel-echo

Version:

Laravel Echo library for beautiful Pusher and Socket.IO integration

24 lines (23 loc) 781 B
import type { 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: CallableFunction): this; /** * Listen for someone joining the channel. */ joining(callback: CallableFunction): this; /** * Send a whisper event to other clients in the channel. */ whisper(eventName: string, data: unknown): this; /** * Listen for someone leaving the channel. */ leaving(callback: CallableFunction): this; }