WebsocketClient class

Legacy JSON-RPC WebSocket subscription client.

JSON-RPC (and its WebSocket subscriptions) is being decommissioned. Use SuiGrpcClient.subscribeCheckpoints for checkpoint streaming; event subscriptions move to Sui GraphQL. See the migration guide in the README.

Annotations
  • @Deprecated('JSON-RPC WebSocket subscriptions are being removed. Use ' 'SuiGrpcClient.subscribeCheckpoints; event subscriptions move to GraphQL.')

Constructors

WebsocketClient(String endpoint)

Properties

endpoint String
final
hashCode int
The hash code for this object.
no setterinherited
requestIdToSubscriptionId Map<int, int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streams Map<int, StreamController>
final
subscriptionIdToRequestId Map<int, int>
final

Methods

close() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(dynamic data) Stream
setupClient() → WebSocketChannel
subscribeEvent(Map filter) Stream
subscribeEventFilter(EventFilter filter) Stream
subscribeTransaction(Map filter) Stream
toString() String
A string representation of this object.
inherited

Operators

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