SolanaMobileWebSocket class
Solana Mobile Web Socket
Methods
-
backoff(int i, {required List<int> schedule})
→ FutureOr<void>
-
Returns a future that completes after
schedule[i] milliseconds. If i is out of range, the
future completes in schedule.last milliseconds or immediately when schedule is empty.
-
connect(Uri uri, {Duration? pingInterval, Iterable<String>? protocols, int? maxAttempts, List<int>? backoffSchedule, Duration? timeout, Duration? lockTimeout})
→ Future<WebSocket>
-
Creates a web socket connection to
uri.
-
disconnect([int? code, String? reason])
→ Future<void>
-
Disconnects the web socket connection.
-
listen({void onConnect(WebSocket socket)?})
→ void
-
Adds listeners to be called within the connect() and disconnect() synchronised execution
blocks.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
send(dynamic data)
→ void
-
Sends
data on the web socket connection.
-
sendJson(Map<String, dynamic> data)
→ void
-
Sends JSON
data on the web socket connection.
-
toString()
→ String
-
A string representation of this object.
inherited