UNPKG

@soketi/soketi-js

Version:

Laravel Echo extension that works with Soketi, a Laravel-ready WebSockets service.

16 lines (13 loc) 429 B
import { PusherChannel } from './pusher-channel'; /** * This class represents a Pusher private channel. */ export class PusherEncryptedPrivateChannel extends PusherChannel { /** * Trigger client event on the channel. */ whisper(eventName: string, data: any): PusherEncryptedPrivateChannel { this.pusher.channels.channels[this.name].trigger(`client-${eventName}`, data); return this; } }