Setu-TS
    Preparing search index...

    Interface DiagnosticsClientOptions

    The native client helper's factory options. Every dependency is injected: the helper uses web-standard fetch and SubtleCrypto supplied by its caller and never reads ambient runtime globals.

    0.8.0

    interface DiagnosticsClientOptions {
        endpoint: string;
        fetch: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        sessionId: string;
        sessionKey: Uint8Array;
        subtle: SubtleCrypto;
        timing: {
            clearTimeout(handle: unknown): void;
            setTimeout(fn: () => void, ms: number): unknown;
        };
    }
    Index
    endpoint: string

    Exactly http://127.0.0.1:<port> — no credentials, path, query, or fragment. Any other endpoint is refused before the first request.

    fetch: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    The web-standard fetch used for every request. Callers in framework applications bind IRuntimeServices-provided or platform fetch here.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    sessionId: string

    The 32 lowercase hex characters of the launch's session ID.

    sessionKey: Uint8Array

    The 32 launch bytes of the session key. Imported once as a non-extractable HMAC-SHA-256 key; the helper's temporary copy is zeroed after import.

    subtle: SubtleCrypto

    The Web Crypto SubtleCrypto used for every MAC and digest operation.

    timing: {
        clearTimeout(handle: unknown): void;
        setTimeout(fn: () => void, ms: number): unknown;
    }

    The timing port used for the fixed 5-second request deadline: { setTimeout(fn, ms): unknown; clearTimeout(handle): void }. Callers in framework applications bind IRuntimeServices.setTimeout / clearTimeout here. All deadlines are cleared after completion or IDiagnosticsClient.close.