IFClite TypeScript API
    Preparing search index...

    Interface HostHello

    Host to viewer, as a window message with a MessagePort transferred.

    interface HostHello {
        connectionId?: string;
        protocol: ProtocolVersion;
        resume?: true | ResumePoint;
        target: "ifc-lite-viewer";
        type: "hello";
        wants?: (
            | "view.apply"
            | "view.capture"
            | "view.saved"
            | "clash.run"
            | "clash.decisions"
            | "connection.resume"
        )[];
    }
    Index
    connectionId?: string

    The same for every hello one connection attempt sends (it retries), and different for every attempt: a repeat is refused instead of replacing the connection it made. At most 128 characters.

    protocol: ProtocolVersion
    resume?: true | ResumePoint

    With connection.resume: true to have the events numbered, or the point the host's previous page reached, to get the events it missed again. A viewer without the capability ignores it.

    target: "ifc-lite-viewer"
    type: "hello"
    wants?: (
        | "view.apply"
        | "view.capture"
        | "view.saved"
        | "clash.run"
        | "clash.decisions"
        | "connection.resume"
    )[]

    The capabilities whose events the host wants. Omitted: all of them. Requests are not limited by it.