IFClite TypeScript API
    Preparing search index...

    Interface PanelOptions

    interface PanelOptions {
        origin: string;
        requestTimeoutMs?: number;
        role: "panel";
        signal?: AbortSignalLike;
        timeoutMs?: number;
        viewer?: unknown;
        wants?: (
            | "view.apply"
            | "view.capture"
            | "view.saved"
            | "clash.run"
            | "clash.decisions"
            | "connection.resume"
        )[];
        window?: MessageSourceLike;
    }

    Hierarchy

    • CommonOptions
      • PanelOptions
    Index
    origin: string

    Exactly the viewer's origin, e.g. https://viewer.example.

    requestTimeoutMs?: number

    How long a request may wait for its reply. Default 60 000 ms (applying a view waits for loads).

    role: "panel"

    Aborting stops the handshake (it rejects with aborted) or, once connected, closes the connection.

    timeoutMs?: number

    How long the handshake may take. Default 10 000 ms.

    viewer?: unknown

    The viewer's window (window.parent); when given, offers from any other window are ignored.

    wants?: (
        | "view.apply"
        | "view.capture"
        | "view.saved"
        | "clash.run"
        | "clash.decisions"
        | "connection.resume"
    )[]

    The capabilities whose events you want; omitted: all.

    Where window messages arrive. Default: globalThis (the page's window).