RemoteAssociationScenario class

Remote Association Scenario

A scenario for connecting to a wallet application running on a different device.

Inheritance

Constructors

RemoteAssociationScenario(String hostAuthority, {int? id, required Duration? timeLimit})
Creates a remote association between the dApp and a wallet application running on a different device.

Properties

association Association
The scenario's Association information.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeLimit Duration?
The default timeout duration applied to a connect call.
finalinherited

Methods

connect({Duration? timeLimit, Uri? walletUriBase}) Future<Session>
Establishes an encrypted session between the dApp and wallet endpoints.
inherited
dispose() Future<void>
Releases all acquired resources.
inherited
initialize(JsonRpcWebsocketClient client, Uri walletUri, {Duration? timeLimit}) Future<void>
Performs any setup required by the scenario prior to establishing an encrypted session (e.g. launching the mobile wallet application or waiting for a ping frame).
override
isWebsocketPing(List<int> data) bool
Returns true if data is an APP_PING message.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onWebsocketPing(List<int> data) → void
"An APP_PING is an empty message. It is sent by the reflector to each endpoint when both endpoints have connected to the reflector. On first connecting to a reflector, the endpoints should wait to receive this message before initiating any communications. After any other message has been received, the APP_PING message becomes a no-op, and should be ignored." source
override
session(JsonRpcWebsocketClient<List<int>> client) FutureOr<Session>
Returns the JSON RPC API for the connected client.
inherited
toString() String
A string representation of this object.
inherited

Operators

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