writeTo method
Writes the header to a supplied stream.
Implementation
void writeTo(int messageSize, MqttByteBuffer messageStream) {
_messageSize = messageSize;
final headerBuff = headerBytes();
messageStream.write(headerBuff);
}
Writes the header to a supplied stream.
void writeTo(int messageSize, MqttByteBuffer messageStream) {
_messageSize = messageSize;
final headerBuff = headerBytes();
messageStream.write(headerBuff);
}