SolanaMobileWebSocketConnection class abstract
Solana Mobile Web Socket Connection
Constructors
-
SolanaMobileWebSocketConnection({int? maxAttempts, List<
int> ? backoffSchedule = const [], Iterable<String> ? protocols}) - An abstraction over a SolanaMobileWebSocket to map web socket requests to their responses.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket ↔ SolanaMobileWebSocket
-
The web socket connection.
latefinal
- webSocketExchangeManager → WebSocketExchangeManager
-
Maps JsonRpcRequests to their corresponding JsonRpcResponse.
final
- webSocketSubscriptionManager → WebSocketSubscriptionManager
-
Adds and removes stream listeners for a web socket subscription.
final
Methods
-
dispose(
[Object? error, StackTrace? stackTrace]) → Future< void> - Disposes of all the acquired resources:
-
encrypt(
List< int> data) → FutureOr<List< int> > -
A hook that can be used to encrypt
data. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onWebSocketConnect(
) → void - Called when the web socket connects.
-
onWebSocketData(
dynamic data) → void -
Called when the web socket receives
data. -
onWebSocketDisconnect(
[int? code, String? reason]) → void - Called when the web socket closes.
-
onWebSocketError(
Object error, [StackTrace? stackTrace]) → void -
Called when the web socket receives an
error. -
onWebSocketExchangeTimeout<
T> () → Future< JsonRpcResponse< Function()T> > -
Creates an
onTimeoutcallback function for a webSocketExchange. -
toString(
) → String -
A string representation of this object.
inherited
-
webSocketExchange<
T> (Uri uri, JsonRpcRequest request, {JsonRpcRequestConfig? config}) → Future< JsonRpcResponse< T> > - Makes a JSON-RPC data request to the web socket server.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited