subscribe method

ReqSubscribeListener subscribe(
  1. String path,
  2. dynamic callback(
    1. ValueUpdate update
    ), [
  3. int qos = 0
])

Implementation

ReqSubscribeListener subscribe(
  String path,
  Function(ValueUpdate update) callback, [
  int qos = 0,
]) {
  var node = nodeCache.getRemoteNode(path);
  node._subscribe(this, callback, qos);
  return ReqSubscribeListener(this, path, callback);
}