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

Hierarchy

  • Backoff

Implemented by

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

Generated using TypeDoc