Selva Compute API Reference - v1.5.1
    Preparing search index...

    Interface ComputeConfig

    interface ComputeConfig {
        apiKey?: string;
        authToken?: string;
        debug?: boolean;
        retry?: RetryPolicy;
        serverUrl: string;
        signal?: AbortSignal;
        suppressClientSideWarning?: boolean;
        timeoutMs?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    apiKey?: string

    Optional API key for authenticating with the server (RhinoComputeKey)

    authToken?: string

    Optional Bearer token for authentication (e.g., when behind a proxy or API gateway)

    debug?: boolean

    Enable debug logging to the console

    retry?: RetryPolicy

    Retry policy for transient errors. Default: no retries.

    serverUrl: string

    The base URL of the Rhino Compute server (e.g., http://localhost:6500)

    signal?: AbortSignal

    Optional caller-supplied AbortSignal. Composes with the internal timeout — whichever fires first wins. Lets callers cancel in-flight requests (e.g. on component unmount or when superseding a stale solve).

    suppressClientSideWarning?: boolean

    Suppress browser security warnings in the console

    timeoutMs?: number

    Per-request timeout in milliseconds. Set to 0 to disable (useful for long solves where any timeout is the wrong answer). Default: no timeout.

    Uses AbortSignal.timeout so the timer is not throttled when the tab is hidden.