UNPKG

@soketi/soketi-js

Version:

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

12 lines (11 loc) 474 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PusherEncryptedPrivateChannel = void 0; const pusher_channel_1 = require("./pusher-channel"); class PusherEncryptedPrivateChannel extends pusher_channel_1.PusherChannel { whisper(eventName, data) { this.pusher.channels.channels[this.name].trigger(`client-${eventName}`, data); return this; } } exports.PusherEncryptedPrivateChannel = PusherEncryptedPrivateChannel;