KC's Workspace
    Preparing search index...

    Interface HotChannel<Api>

    interface HotChannel<Api = any> {
        api?: Api;
        close?(): void | Promise<unknown>;
        listen?(): void;
        off?(event: string, listener: Function): void;
        on?<T$1 extends string>(
            event: T$1,
            listener: HotChannelListener<T$1>,
        ): void;
        on?(event: "connection", listener: () => void): void;
        send?(payload: HotPayload): void;
    }

    Type Parameters

    • Api = any
    Index

    Properties

    Methods

    Properties

    api?: Api

    Methods