writeTo method

  1. @override
void writeTo(
  1. MqttByteBuffer messageStream
)
override

Writes the message to the supplied stream.

Implementation

@override
void writeTo(MqttByteBuffer messageStream) {
  header!.writeTo(
      _variableHeader!.getWriteLength() + payload.getWriteLength(),
      messageStream);
  _variableHeader!.writeTo(messageStream);
  payload.writeTo(messageStream);
}