laravel-echo
Version:
Laravel Echo library for beautiful Pusher, Socket.IO, and Mercure integration
9 lines (8 loc) • 455 B
TypeScript
import { MercureChannel } from "./mercure-channel";
/** A JWT-guarded Mercure channel with a publishable whisper topic. */
export declare class MercurePrivateChannel extends MercureChannel {
/** Send a whisper to other channel members. */
whisper(eventName: string, data: Record<any, any>): this;
/** Skip the public warning and open the whisper stream on first use. */
listenForWhisper(event: string, callback: CallableFunction): this;
}