WebSocketOptions class

Bounded reconnect and application-level ping/pong configuration.

Constructors

WebSocketOptions({int maxReconnects = 3, Duration reconnectDelay = const Duration(seconds: 1), Duration? heartbeatInterval, Duration heartbeatTimeout = const Duration(seconds: 30), String ping = 'ping', String pong = 'pong'})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
heartbeatInterval → Duration?
final
heartbeatTimeout → Duration
final
maxReconnects → int
final
ping → String
final
pong → String
final
reconnectDelay → 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.
inherited

Operators

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