OptionalcleanIf true(default) the client and server persistent state is deleted on successful connect.
OptionalclientThe Messaging client identifier, between 1 and 23 characters in length.
Optionalhostthe address of the messaging server as a DNS name or dotted decimal IP address.
OptionalhostsIf 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.
OptionalhostThe address of the messaging server as a fully qualified WebSocket URI
OptionalinvocationPassed to the onSuccess callback or onFailure callback.
OptionalkeepThe server disconnects this client if there is no activity for this number of seconds.
OptionalmqttSpecifies the mqtt version to use when connecting
OptionalmqttIf set to true, will force the connection to use the selected MQTT Version or will fail to connect.
OptionalonCalled when the connect request has failed or timed out.
OptionalonCalled when the connect acknowledgement has been received from the server.
OptionalpasswordAuthentication password for this connection.
Optionalpaththe path on the host to connect to - only used if host is not a URI.
OptionalportThe port number to connect to
OptionalportsIf present the set of ports matching the hosts. If hosts contains URIs, this property is not used.
OptionalreconnectSets whether the client will automatically attempt to reconnect to the server if the connection is lost.
OptionaltimeoutIf the connect has not succeeded within this number of seconds, it is deemed to have failed.
OptionalurisIf 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.
OptionaluserAuthentication username for this connection.
OptionaluseSSLIf present and true, use an SSL Websocket connection.
OptionalwillSent by the server when the client disconnects abnormally.
Options for the connection to broker.