connect method
Creates a new session calling createSession if it doesnt exists, or returns the instantiated one.
Implementation
Future<SessionStatus> connect(
{int? chainId, OnDisplayUriCallback? onDisplayUri}) async {
if (connected) {
onDisplayUri?.call(session.toUri());
return SessionStatus(
chainId: session.chainId,
accounts: session.accounts,
);
}
return await createSession(chainId: chainId, onDisplayUri: onDisplayUri);
}