ReconnectConfig constructor

const ReconnectConfig({
  1. bool enabled = true,
  2. Duration initialDelay = const Duration(seconds: 1),
  3. Duration maxDelay = const Duration(seconds: 30),
  4. double backoffFactor = 2.0,
  5. int? maxAttempts,
})

Creates a reconnect config.

Implementation

const ReconnectConfig({
  this.enabled = true,
  this.initialDelay = const Duration(seconds: 1),
  this.maxDelay = const Duration(seconds: 30),
  this.backoffFactor = 2.0,
  this.maxAttempts,
});