websocket-ts
    Preparing search index...

    Interface Backoff

    A Backoff produces a series of numbers that are used to determine the delay between connection-retries. Values are expected to be in milliseconds.

    interface Backoff {
        current: number;
        retries: number;
        next(): number;
        reset(): void;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    current: number

    Current number in the series.

    retries: number

    The number of retries. Starts at 0, increases by 1 for each call to next(). Resets to 0 when reset() is called.

    Methods

    • Advances the series to the next number and returns it.

      Returns number

      the next number in the series