WebSocketConnection class
Complete profiling information for a WebSocket connection.
- Inheritance
-
- Object
- WebSocketConnectionRef
- WebSocketConnection
Constructors
-
WebSocketConnection({required String isolateId, required String id, required Uri uri, required String state, required DateTime connectTimestamp, required DateTime lastUpdated, required List<
WebSocketEvent> events, String? protocol, DateTime? openTimestamp, DateTime? closeTimestamp, int? closeCode, String? closeReason, String? error, int bytesSent = 0, int bytesReceived = 0, int framesSent = 0, int framesReceived = 0, int pingCount = 0, int pongCount = 0})
Properties
- bytesReceived → int
-
final
- bytesSent → int
-
final
- closeCode → int?
-
final
- closeReason → String?
-
final
- closeTimestamp → DateTime?
-
final
- connectTimestamp → DateTime
-
final
- error → String?
-
final
-
events
→ List<
WebSocketEvent> -
final
- framesReceived → int
-
final
- framesSent → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique connection identifier.
finalinherited
- isolateId → String
-
The ID of the isolate owning this connection.
finalinherited
- lastUpdated → DateTime
-
final
- openTimestamp → DateTime?
-
final
- pingCount → int
-
final
- pongCount → int
-
final
- protocol → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
Current lifecycle state.
finalinherited
- uri → Uri
-
The remote WebSocket endpoint.
finalinherited
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
Static Methods
-
parse(
Map< String, dynamic> ? json) → WebSocketConnection? -
override