init method

  1. @override
Future<void> init()
override

Implementation

@override
Future<void> init() async {
  if (_initialized) {
    return;
  }

  await core.pairing.init();
  await core.verify.init(verifyUrl: metadata.verifyUrl);
  await proposals.init();
  await sessions.init();
  await pendingRequests.init();
  await sessionAuthRequests.init();
  await authKeys.init();
  await pairingTopics.init();

  _registerInternalEvents();
  _registerRelayClientFunctions();
  await _cleanup();

  await _resubscribeAll();

  _initialized = true;
}