readFrom method

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

Reads a message from the supplied stream.

Implementation

@override
void readFrom(MqttByteBuffer messageStream) {
  super.readFrom(messageStream);
  variableHeader =
      MqttPublishVariableHeader.fromByteBuffer(header, messageStream);
  payload = MqttPublishPayload.fromByteBuffer(
      header, variableHeader, messageStream);
}