MQTTWS31.js reconnect bug [message #1706407] |
Wed, 26 August 2015 12:40  |
Eclipse User |
|
|
|
during a connect the ws library performs a
validate(connectOptions, {timeout:"number",
userName:"string",
password:"string",
willMessage:"object",
keepAliveInterval:"number",
cleanSession:"boolean",
useSSL:"boolean",
invocationContext:"object",
onSuccess:"function",
onFailure:"function",
hosts:"object",
ports:"object",
mqttVersion:"number"});
once found valid the library then adds several properties not listed in the validation to the connectOptions including "mqttVersionExplicit" (line 1755) and "uris" (line 1815).
When a disconnect occurs I am attempting to issue a reconnect the same connectionOptions object. This reconnect is failing because connectOptions now contains attributes that do not pass the validation. Should I be clearing the options off of my connectoptions object that I didn't add or should those attributes be added to the validation. The second options seems the preferred.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04223 seconds