MqttRecordOptions


interface MqttRecordOptions {
  qos?: 0 | 1 | 2
  retain?: boolean
  dup?: boolean
  properties?: {...}
}

Properties

Property Description
qos?: 0 | 1 | 2

The QoS

retain?: boolean

The retain flag

dup?: boolean

Whether or not mark a message as duplicate

properties?: { payloadFormatIndicator?: number; messageExpiryInterval?: number; topicAlias?: string; responseTopic?: string; correlationData?: Buffer; userProperties?: Record<string, string | string[]>; subscriptionIdentifier?: number; contentType?: string; }