SocketClientConfig class

Constructors

SocketClientConfig({bool autoReconnect: true, Duration queryAndMutationTimeout: const Duration(seconds: 10), Duration inactivityTimeout: const Duration(seconds: 30), Duration delayBetweenReconnectionAttempts: const Duration(seconds: 5), dynamic initPayload})
const

Properties

autoReconnect → bool
Whether to reconnect to the server after detecting connection loss.
final
delayBetweenReconnectionAttempts → Duration
The duration that needs to pass before trying to reconnect to the server after a connection loss. This only takes effect when autoReconnect is set to true. [...]
final
inactivityTimeout → Duration
The duration after which the connection is considered unstable, because no keep alive message was received from the server in the given time-frame. The connection to the server will be closed. If autoReconnect is set to true, we try to reconnect to the server after the specified delayBetweenReconnectionAttempts. [...]
final
initOperation InitOperation
read-only
initPayload → dynamic
The initial payload that will be sent to the server upon connection. Can be null, but must be a valid json structure if provided.
final
queryAndMutationTimeout → Duration
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited