startMonitor method
startMonitor needs to be called at the beginning of session called again if outbound connection is dropped
Implementation
Future<bool> startMonitor() async {
if (!monitorStarted) {
AtClientManager.getInstance()
.atClient
.notificationService
.subscribe(
regex: atClientManager.atClient.getPreferences()!.namespace ?? '',
shouldDecrypt: true)
.listen((AtNotification notification) {
_notificationCallback(notification);
});
monitorStarted = true;
}
return true;
}