Optional
cleanIf true(default) the client and server persistent state is deleted on successful connect.
Optional
clientThe Messaging client identifier, between 1 and 23 characters in length.
Optional
hostthe address of the messaging server as a DNS name or dotted decimal IP address.
Optional
hostsIf present this contains either a set of hostnames or fully qualified WebSocket URIs (ws://example.com:1883/mqtt), that are tried in order in place of the host and port paramater on the construtor. The hosts are tried one at at time in order until one of then succeeds.
Optional
hostThe address of the messaging server as a fully qualified WebSocket URI
Optional
invocationPassed to the onSuccess callback or onFailure callback.
Optional
keepThe server disconnects this client if there is no activity for this number of seconds.
Optional
mqttSpecifies the mqtt version to use when connecting
Optional
mqttIf set to true, will force the connection to use the selected MQTT Version or will fail to connect.
Optional
onCalled when the connect request has failed or timed out.
Optional
onCalled when the connect acknowledgement has been received from the server.
Optional
passwordAuthentication password for this connection.
Optional
paththe path on the host to connect to - only used if host is not a URI.
Optional
portThe port number to connect to
Optional
portsIf present the set of ports matching the hosts. If hosts contains URIs, this property is not used.
Optional
reconnectSets whether the client will automatically attempt to reconnect to the server if the connection is lost.
Optional
timeoutIf the connect has not succeeded within this number of seconds, it is deemed to have failed.
Optional
urisIf present, should contain a list of fully qualified WebSocket uris (e.g. ws://mqtt.eclipseprojects.io:80/mqtt), that are tried in order in place of the host and port parameter of the construtor. The uris are tried one at a time in order until one of them succeeds. Do not use this in conjunction with hosts as the hosts array will be converted to uris and will overwrite this property.
Optional
userAuthentication username for this connection.
Optional
useSSLIf present and true, use an SSL Websocket connection.
Optional
willSent by the server when the client disconnects abnormally.
Options for the connection to broker.