Type Alias ReconnectionStrategy<T>

ReconnectionStrategy<T>: ((params: T, lastError: Error | null, consequentFails: number, previousWait: number | null) => number | false)

Declares a strategy to handle reconnection. When a number is returned, that number of MS will be waited before trying to reconnect. When false is returned, connection is not reconnected

Type Parameters

  • T