getMeta method

Future getMeta(
  1. String topicName,
  2. GetQuery params
)

Request topic metadata

Implementation

Future getMeta(String topicName, GetQuery params) {
  var packet = _packetGenerator.generate(packet_types.Get, topicName);
  var data = packet.data as GetPacketData;

  data.data = params.data?.toMap();
  data.desc = params.desc?.toMap();
  data.what = params.what;
  data.sub = params.sub?.toMap();

  packet.data = data;
  return _send(packet);
}