WebSocketConnection class

WebSocket connection model

Constructors

WebSocketConnection({required String id, required String url, required Map<String, String> headers, required DateTime connectedAt})

Properties

connectedAt DateTime
final
disconnectedAt DateTime?
getter/setter pair
events List<WebSocketEvent>
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
id String
final
isConnected bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

addEvent(WebSocketEvent event) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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