ixfx
    Preparing search index...

    Type Alias ReconnectingOptions

    type ReconnectingOptions = {
        checkStateMs: Interval;
        limitAttempts: number;
        maxDelay: Interval;
        onConnected: () => void;
        onDisconnected: () => void;
        onError: (error: any) => void;
        onMessage: (message: any) => void;
        startDelay: Interval;
    }
    Index

    Properties

    checkStateMs: Interval

    How often to check the state of the underlying websocket.

    Default: 5s

    limitAttempts: number
    maxDelay: Interval
    onConnected: () => void
    onDisconnected: () => void
    onError: (error: any) => void
    onMessage: (message: any) => void

    Callback when message is received

    Type declaration

      • (message: any): void
      • Parameters

        • message: any

        Returns void

    startDelay: Interval