note method

Future note(
  1. String topicName,
  2. String what,
  3. int seq
)

Notify server that a message or messages were read or received. Does NOT return promise

Implementation

Future note(String topicName, String what, int seq) {
  if (seq <= 0 || seq >= _configService.appSettings.localSeqId) {
    throw Exception('Invalid message id ' + seq.toString());
  }

  var packet = _packetGenerator.generate(packet_types.Note, topicName);
  var data = packet.data as NotePacketData;
  data.what = what;
  data.seq = seq;
  packet.data = data;
  return _send(packet);
}