HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/task/1784574/cwd/node_modules/laravel-echo/src/channel/
Upload File :
Current File : //proc/1784574/task/1784574/cwd/node_modules/laravel-echo/src/channel/null-presence-channel.ts
import { NullChannel } from './null-channel';
import { PresenceChannel } from './presence-channel';

/**
 * This class represents a null presence channel.
 */
export class NullPresenceChannel extends NullChannel implements PresenceChannel {
    /**
     * Register a callback to be called anytime the member list changes.
     */
    here(callback: Function): NullPresenceChannel {
        return this;
    }

    /**
     * Listen for someone joining the channel.
     */
    joining(callback: Function): NullPresenceChannel {
        return this;
    }

    /**
     * Send a whisper event to other clients in the channel.
     */
    whisper(eventName: string, data: any): NullPresenceChannel {
        return this;
    }

    /**
     * Listen for someone leaving the channel.
     */
    leaving(callback: Function): NullPresenceChannel {
        return this;
    }
}