SocketConfig class
Configuration class for WebSocket settings.
Use SocketConfig to configure WebSocket connection parameters, including whether to persist streams, WebSocket URL (ws), and whether to start listening immediately (listen).
Constructors
- SocketConfig({bool persistStream = false, required String ws, bool listen = true, String persistanceKey = 'K-es'})
- Creates a SocketConfig instance with the specified configuration parameters.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- listen → bool
-
Whether to start listening to WebSocket events immediately.
final
- persistanceKey → String
-
final
- persistStream → bool
-
Whether to persist the WebSocket stream.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ws → String
-
The WebSocket URL to connect to.
final
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