MqttUnsubscribeMessage constructor

MqttUnsubscribeMessage()

Initializes a new instance of the MqttUnsubscribeMessage class.

Implementation

MqttUnsubscribeMessage() {
  header = MqttHeader().asType(MqttMessageType.unsubscribe);
  // Qos of at least once has to be specified for this message.
  header!.qos = MqttQos.atLeastOnce;
}