Interface APIConnectOptions

Connection options for API calls, controlling retry and timeout behavior.

interface APIConnectOptions {
    maxRetry: number;
    retryIntervalMs: number;
    timeoutMs: number;
}

Properties

maxRetry: number

Maximum number of retries to connect to the API. Default: 3

retryIntervalMs: number

Interval between retries to connect to the API in milliseconds. Default: 2000

timeoutMs: number

Timeout for connecting to the API in milliseconds. Default: 10000