monitor method
Executes monitor verb on remote secondary. Result of the monitor verb is processed using monitorResponseCallback
Deprecated Use AtClient.notificationService
Implementation
@Deprecated('Use AtClient.notificationService')
Future<OutboundConnection> monitor(
String command, Function? notificationCallBack, String privateKey) {
return MonitorClient(privateKey).executeMonitorVerb(
command, _atSign, _preference.rootDomain, _preference.rootPort,
(value) {
notificationCallBack!(value);
}, restartCallBack: _restartCallBack);
}