WebSocketExchange<T> class

Web Socket Exchange

Constructors

WebSocketExchange(JsonRpcRequest request)
Tracks the request/response cycle of a JSON-RPC web socket method call.

Properties

createdAt DateTime
The UTC timestamp at which this exchange was created.
final
hash String
The hash that uniquely identifies the request's method invocation.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
The unique id of the request.
no setter
isCompleted bool
Returns true if the request/response cycle is complete.
no setter
request JsonRpcRequest
The JSON-RPC request.
final
response Future<JsonRpcResponse<T>>
The JSON-RPC response.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

complete(JsonRpcResponse<T> response) → void
Completes the WebSocketExchange with a response.
completeError(Object error, [StackTrace? stackTrace]) → void
Completes the WebSocketExchange with an error.
dispose() → void
Disposes of all the acquired resources.
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