ReconnectConfig constructor

ReconnectConfig({
  1. required ReconnectMode mode,
  2. Duration interval = const Duration(seconds: 2),
  3. int maxAttempts = 5,
  4. Future<Map<String, String>> reconnectHeader()?,
  5. dynamic onReconnect()?,
})

Implementation

ReconnectConfig({
  required this.mode,
  this.interval = const Duration(seconds: 2),
  this.maxAttempts = 5,
  this.reconnectHeader,
  this.onReconnect,
});