startMonitor method

Future<void> startMonitor()

starts monitor to receive incoming notifications.

Implementation

Future<void> startMonitor() async {
  if (!monitorStarted) {
    AtClientManager.getInstance()
        .atClient
        .notificationService
        .subscribe(shouldDecrypt: true)
        .listen((monitorNotification) {
      _notificationCallback(monitorNotification);
    });
    monitorStarted = true;
  }
}