Function defaultReconnectionStrategy

default reconnection strategy: first - immediate reconnection, then 1s with linear increase up to 5s (with 1s step)

  • Parameters

    • params: object
    • lastError: null | Error
    • consequentFails: number
    • previousWait: null | number

    Returns number | false