Function defaultReconnectionStrategy
- defaultReconnectionStrategy(params, lastError, consequentFails, previousWait): number | false
Parameters
- params: object
- lastError: null | Error
- consequentFails: number
- previousWait: null | number
Returns number | false
default reconnection strategy: first - immediate reconnection, then 1s with linear increase up to 5s (with 1s step)