monitor method

  1. @Deprecated('Use AtClient.notificationService')
Future<OutboundConnection> monitor(
  1. String command,
  2. Function? notificationCallBack,
  3. String privateKey
)

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