Interface StarCommsClientConfig

Configuration options for the Star Comms client.

interface StarCommsClientConfig {
    baseUrl: string;
    connectTimeoutMs?: number;
    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
    ownerApiKey: string;
    shardToken?: string;
    timeoutMs?: number;
}

Properties

baseUrl: string

Base URL of the shard (e.g., "http://your-shard:25588"). No trailing slash.

connectTimeoutMs?: number

Connection timeout for streaming endpoints in ms.

30000
fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

Custom fetch implementation.

Type declaration

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

      • input: RequestInfo | URL
      • Optionalinit: RequestInit

      Returns Promise<Response>

globalThis.fetch
ownerApiKey: string

Owner API key (scok_...) for authenticated endpoints.

shardToken?: string

Shard token (scsh_...) for the /debug endpoint.

timeoutMs?: number

Request timeout in milliseconds.

10000