MobileAssociationScenario constructor
Creates a local association between the dApp and wallet endpoint, which can be used to make method calls within a secure session.
Implementation
MobileAssociationScenario({
final int? port,
required final Duration? timeLimit,
}): super(
LocalAssociation(port: port),
// If [timeLimit] is provided set [maxAttempts] to any value that will exceed [timeLimit].
maxAttempts: timeLimit != null ? timeLimit.inSeconds : 34, // ~ 30 seconds
backoffSchedule: const [150, 150, 200, 500, 500, 750, 750, 1000],
protocols: const [websocketProtocol],
timeLimit: timeLimit,
);