init method

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

Implementation

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

  _registerRelayEvents();
  _registerExpirerEvents();
  _registerheartbeatSubscription();

  await core.expirer.init();
  await pairings.init();
  await history.init();
  await topicToReceiverPublicKey.init();

  await _cleanup();

  await _resubscribeAll();

  _initialized = true;
}