writeTo method

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

Writes the variable header to the supplied stream.

Implementation

@override
void writeTo(MqttByteBuffer variableHeaderStream) {
  writeProtocolName(variableHeaderStream);
  writeProtocolVersion(variableHeaderStream);
  writeConnectFlags(variableHeaderStream);
  writeKeepAlive(variableHeaderStream);
}