readFrom method

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

Reads a message from the supplied stream.

Implementation

@override
void readFrom(MqttByteBuffer messageStream) {
  variableHeader = MqttConnectVariableHeader.fromByteBuffer(messageStream);
  payload = MqttConnectPayload.fromByteBuffer(variableHeader, messageStream);
}