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();

  // FORMER AUTH ENGINE PROPERTIES
  await authKeys.init();
  await pairingTopics.init();
  await authRequests.init();
  await completeRequests.init();
  // NEW 1-CA PROPERTY
  await sessionAuthRequests.init();

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

  await _resubscribeAll();

  _initialized = true;
}