ConnectionConfig constructor
const
ConnectionConfig({
- int maxReconnectAttempts = 10,
- Duration baseReconnectDelay = const Duration(seconds: 1),
- Duration maxReconnectDelay = const Duration(seconds: 30),
- Duration pingInterval = const Duration(seconds: 30),
- Duration pongTimeout = const Duration(seconds: 10),
- bool autoReconnect = true,
- Duration connectTimeout = const Duration(seconds: 10),
- OutboundBatchingPolicy outboundBatching = OutboundBatchingPolicy.opportunistic,
- 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,
});