MCP Server Framework - v1.0.0
    Preparing search index...

    Interface ReconnectOptions

    Options for automatic reconnection with exponential backoff.

    When auto-reconnect is enabled, the ConnectionStateManager will automatically attempt to re-establish the connection when the state transitions to 'error'.

    This handles reconnection to the API backend (e.g. a REST API service), NOT MCP transport reconnection (which is client-side, handled by the SDK).

    interface ReconnectOptions {
        backoffMultiplier?: number;
        initialDelayMs?: number;
        maxDelayMs?: number;
        maxRetries?: number;
    }
    Index

    Properties

    backoffMultiplier?: number

    Multiplier for exponential backoff. Default: 1.5

    initialDelayMs?: number

    Initial delay before the first reconnect attempt in ms. Default: 1000

    maxDelayMs?: number

    Maximum delay between attempts in ms (caps exponential growth). Default: 30000

    maxRetries?: number

    Maximum number of reconnect attempts before giving up. Default: 5