Test your knowledge
The Eclipse Paho JavaScript client provides:
Only a non-blocking (asynchronous) API.
Only a blocking (synchronous) API.
Both a blocking (synchronous) and a non-blocking (asynchronous) API.
In the Paho JavaScript API, the
Paho.MQTT.Client
object represents:The synchronous MQTT over WebSockets client.
The asynchronous MQTT over WebSockets client.
The asynchronous MQTT over TCP client (no WebSockets).
After the
Paho.MQTT.Client
instance establishes a connection with the MQTT server, the callback assigned to which of the following attributes of theconnectOptions
object passed as an argument to theconnect
function will be called?connectCallback
.onSuccess
.onConnect
.
After the
Paho.MQTT.Client
instance receives a message from one of the topic filters to which it has subscribed, the callback assigned to which of the following attributes of theconnectOptions
object passed as an argument to theconnect
function will be called?onMessageReceived
.messageReceivedCallback
.onMessageArrived...