monitor method

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.

Implementation

Future<OutboundConnection> monitor(
    String command, Function? notificationCallBack, String privateKey) {
  return MonitorClient(privateKey).executeMonitorVerb(
      command, _atSign, _preference.rootDomain, _preference.rootPort,
      (value) {
    notificationCallBack!(value);
  }, restartCallBack: _restartCallBack);
}