writeTo method

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

Writes the payload to the supplied stream.

Implementation

@override
void writeTo(MqttByteBuffer payloadStream) {
  subscriptions.forEach((String key, MqttQos value) {
    payloadStream.writeMqttStringM(key);
    payloadStream.writeByte(value.index);
  });
}