ConnectionConfig class
Constructors
- 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})
-
const
Properties
- autoReconnect → bool
-
final
- baseReconnectDelay → Duration
-
final
- connectTimeout → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxReconnectAttempts → int
-
final
- maxReconnectDelay → Duration
-
final
- maxV3OutboundFrameBytes → int
-
Maximum bytes per v3 outbound frame. A queue exceeding this is split
across multiple frames; a single oversized message still ships solo.
Matches the TypeScript SDK's 256 KiB cap.
final
- outboundBatching → OutboundBatchingPolicy
-
Outbound batching policy on the v3 WebSocket transport.
final
- pingInterval → Duration
-
final
- pongTimeout → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- development → const ConnectionConfig
- mobile → const ConnectionConfig
- stable → const ConnectionConfig