asPubPacket method

Packet asPubPacket()

Implementation

Packet asPubPacket() {
  var packet = _packetGenerator.generate(packet_types.Pub, topicName);
  var data = packet.data as PubPacketData;
  data.content = content;
  data.noecho = !echo;
  packet.data = data;
  return packet;
}