Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MqttPublishMessage

Represents an MQTT PUBLISH message

Hierarchy

  • MqttPublishMessage

Implements

Index

Methods

ack

  • ack(): void
  • Send the PUBACK/PUBCOMP to the broker. Use this method only if autoAck option is set to false.

    Returns void

isDup

  • isDup(): boolean
  • Returns boolean

isRetain

  • isRetain(): boolean
  • Returns boolean

messageId

  • messageId(): number
  • Returns number

payload

  • payload(): Buffer
  • Returns Buffer

properties

  • properties(): any
  • Returns any

qosLevel

  • qosLevel(): any
  • Returns any

topicName

  • topicName(): string
  • Returns string

Static create

  • create(messageId: number, qosLevel: any, isDup: boolean, isRetain: boolean, topicName: string, payload: any, properties: any): MqttPublishMessage
  • Create a concrete instance of a Vert.x publish message

    Parameters

    • messageId: number
    • qosLevel: any
    • isDup: boolean
    • isRetain: boolean
    • topicName: string
    • payload: any
    • properties: any

    Returns MqttPublishMessage

Generated using TypeDoc