Interface StarCommsLocalClientConfig

Configuration for the local StarComm WebSocket client.

interface StarCommsLocalClientConfig {
    autoReconnect?: boolean;
    debug?: boolean;
    host?: string;
    initialDelayMs?: number;
    maxAttempts?: number;
    maxDelayMs?: number;
    port?: number;
    token: string;
}

Properties

autoReconnect?: boolean

Whether to automatically reconnect on connection loss.

true
debug?: boolean

Enable debug logging to console.

false
host?: string

Host/IP of the machine running StarComm.

"127.0.0.1"
initialDelayMs?: number

Initial delay before first reconnect attempt in ms.

1000
maxAttempts?: number

Maximum consecutive reconnect attempts before giving up.

Infinity
maxDelayMs?: number

Maximum delay between reconnect attempts in ms.

15000
port?: number

LAN control port configured in StarComm's Mobile Remote settings.

8798
token: string

Pairing token from StarComm's Mobile Remote settings. Required for authentication — the connection will receive a 401 without it.