SocketConnectionQuality enum
Represents the quality level of a WebSocket connection based on ping interval and jitter metrics.
Quality levels for 30-second server ping intervals:
- disconnected: Not connected to the socket
- calculating: Initial connection phase, not enough data to assess quality yet
- excellent: Ping intervals close to 30s with minimal jitter (±100ms, <100ms jitter)
- good: Ping intervals reasonably close to 30s with moderate jitter (±200ms, <200ms jitter)
- fair: Ping intervals somewhat variable but functional (±300ms, <300ms jitter)
- poor: Significant deviation from expected intervals or high jitter
Values
- disconnected → const SocketConnectionQuality
-
Not connected to socket
- calculating → const SocketConnectionQuality
-
Initial connection, insufficient data
- excellent → const SocketConnectionQuality
-
~30s ±100ms interval, <100ms jitter
- good → const SocketConnectionQuality
-
~30s ±200ms interval, <200ms jitter
- fair → const SocketConnectionQuality
-
~30s ±300ms interval, <300ms jitter
- poor → const SocketConnectionQuality
-
Significant deviation from 30s or high jitter
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
SocketConnectionQuality> - A constant List of the values in this enum, in order of their declaration.