Methods
clientId
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:191
Returns string
closeHandler
closeHandler( closeHandler: ( ( res: void ) => void ) | Handler < void > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:181
Parameters
closeHandler: ( ( res: void ) => void ) | Handler < void >
connect
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:40
Parameters
port: number
host: string
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:45
Parameters
port: number
host: string
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:50
Parameters
port: number
host: string
serverName: string
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:55
Parameters
port: number
host: string
serverName: string
disconnect
disconnect( ) : PromiseLike < void >
disconnect( disconnectHandler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:60
Returns PromiseLike < void >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:65
Parameters
disconnectHandler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > >
exceptionHandler
exceptionHandler( handler: ( ( res: Throwable ) => void ) | Handler < Throwable > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:176
Parameters
handler: ( ( res: Throwable ) => void ) | Handler < Throwable >
isConnected
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:195
Returns boolean
ping
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:187
pingResponseHandler
pingResponseHandler( pingResponseHandler: ( ( res: void ) => void ) | Handler < void > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:168
Parameters
pingResponseHandler: ( ( res: void ) => void ) | Handler < void >
publish
publish( topic: string , payload: Buffer , qosLevel: any , isDup: boolean , isRetain: boolean ) : PromiseLike < number >
publish( topic: string , payload: Buffer , qosLevel: any , isDup: boolean , isRetain: boolean , publishSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:70
Parameters
topic: string
payload: Buffer
qosLevel: any
isDup: boolean
isRetain: boolean
Returns PromiseLike < number >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:75
Parameters
topic: string
payload: Buffer
qosLevel: any
isDup: boolean
isRetain: boolean
publishSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > >
publishCompletionExpirationHandler
publishCompletionExpirationHandler( publishCompletionExpirationHandler: ( ( res: number ) => void ) | Handler < number > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:102
Parameters
publishCompletionExpirationHandler: ( ( res: number ) => void ) | Handler < number >
publishCompletionHandler
publishCompletionHandler( publishCompletionHandler: ( ( res: number ) => void ) | Handler < number > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:87
Parameters
publishCompletionHandler: ( ( res: number ) => void ) | Handler < number >
publishCompletionUnknownPacketIdHandler
publishCompletionUnknownPacketIdHandler( publishCompletionPhantomHandler: ( ( res: number ) => void ) | Handler < number > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:108
Parameters
publishCompletionPhantomHandler: ( ( res: number ) => void ) | Handler < number >
publishHandler
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:113
Parameters
subscribe
subscribe( topic: string , qos: number ) : PromiseLike < number >
subscribe( topic: string , qos: number , subscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > > ) : MqttClient
subscribe( topics: {} ) : PromiseLike < number >
subscribe( topics: {} , subscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:123
Parameters
topic: string
qos: number
Returns PromiseLike < number >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:128
Parameters
topic: string
qos: number
subscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:133
Parameters
Returns PromiseLike < number >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:138
Parameters
topics: {}
subscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > >
subscribeCompletionHandler
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:118
Parameters
unsubscribe
unsubscribe( topics: string ) : PromiseLike < number >
unsubscribe( topics: string , unsubscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > > ) : MqttClient
unsubscribe( topic: string ) : PromiseLike < number >
unsubscribe( topic: string , unsubscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:148
Parameters
Returns PromiseLike < number >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:153
Parameters
topics: string
unsubscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:158
Parameters
Returns PromiseLike < number >
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:163
Parameters
topic: string
unsubscribeSentHandler: ( ( res: AsyncResult < number > ) => void ) | Handler < AsyncResult < number > >
unsubscribeCompletionHandler
unsubscribeCompletionHandler( unsubscribeCompletionHandler: ( ( res: number ) => void ) | Handler < number > ) : MqttClient
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:143
Parameters
unsubscribeCompletionHandler: ( ( res: number ) => void ) | Handler < number >
Static create
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:30
Parameters
Defined in io.vertx/vertx-mqtt/target/npm/index.d.ts:35
Parameters
An MQTT client