ConnectionConfig constructor

const ConnectionConfig({
  1. int maxReconnectAttempts = 10,
  2. Duration baseReconnectDelay = const Duration(seconds: 1),
  3. Duration maxReconnectDelay = const Duration(seconds: 30),
  4. Duration pingInterval = const Duration(seconds: 30),
  5. Duration pongTimeout = const Duration(seconds: 10),
  6. bool autoReconnect = true,
  7. Duration connectTimeout = const Duration(seconds: 10),
  8. OutboundBatchingPolicy outboundBatching = OutboundBatchingPolicy.opportunistic,
  9. int maxV3OutboundFrameBytes = 256 * 1024,
})

Implementation

const ConnectionConfig({
  this.maxReconnectAttempts = 10,
  this.baseReconnectDelay = const Duration(seconds: 1),
  this.maxReconnectDelay = const Duration(seconds: 30),
  this.pingInterval = const Duration(seconds: 30),
  this.pongTimeout = const Duration(seconds: 10),
  this.autoReconnect = true,
  this.connectTimeout = const Duration(seconds: 10),
  this.outboundBatching = OutboundBatchingPolicy.opportunistic,
  this.maxV3OutboundFrameBytes = 256 * 1024,
});