RespSubscribeListener subscribe(dynamic callback(ValueUpdate update), [ int qos = 0 ])

Subscribes the given callback to this node.

Source

RespSubscribeListener subscribe(callback(ValueUpdate update), [int qos = 0]) {
  callbacks[callback] = qos;
  return new RespSubscribeListener(this, callback);
}