Skip to content

backoff

backoff(failures, options?): number

After consecutive failures (the network, the service’s own trouble): base, doubling, capped at max. With the defaults, 1, 2, 4, 8 minutes, then every 15, so a dead Wi-Fi costs next to nothing.

Parameter Type
failures number
options { base?: number; max?: number; }
options.base? number
options.max? number

number