KC's Workspace
    Preparing search index...

    Interface HotChannel<Api>

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

    Type Parameters

    • Api = any
    Index
    api?: Api
    skipFsCheck?: boolean

    When true, the fs access check is skipped in fetchModule. Set this for transports that is not exposed over the network.