Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExponentialReconnectionPolicy

The ExponentialReconnectionPolicy is a policy which reconnects the socket on a delay specified by the equation min(maxDelay, attempts^2 * baseDelay).

Hierarchy

  • ExponentialReconnectionPolicy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

baseDelay

baseDelay: number

delay, in milliseconds, to use in

maxDelay

maxDelay: number

maximum duration to wait between reconnection attempts

Methods

next

  • next(): number

reset

  • reset(): void

Generated using TypeDoc