mqtt 5.10.2 → 5.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/build/lib/client.d.ts +1 -0
- package/build/lib/client.js.map +1 -1
- package/build/lib/handlers/connack.js +3 -0
- package/build/lib/handlers/connack.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/dist/mqtt.esm.js +1 -1
- package/dist/mqtt.js +4 -1
- package/dist/mqtt.min.js +1 -1
- package/package.json +3 -4
- package/src/lib/client.ts +6 -0
- package/src/lib/handlers/connack.ts +3 -0
package/dist/mqtt.js
CHANGED
|
@@ -12625,7 +12625,7 @@ var mqtt = (() => {
|
|
|
12625
12625
|
// package-json:../../package.json
|
|
12626
12626
|
var require_package = __commonJS({
|
|
12627
12627
|
"package-json:../../package.json"(exports5, module) {
|
|
12628
|
-
module.exports = { version: "5.10.
|
|
12628
|
+
module.exports = { version: "5.10.3" };
|
|
12629
12629
|
}
|
|
12630
12630
|
});
|
|
12631
12631
|
|
|
@@ -17119,6 +17119,9 @@ var mqtt = (() => {
|
|
|
17119
17119
|
} else if (rc > 0) {
|
|
17120
17120
|
const err = new shared_1.ErrorWithReasonCode(`Connection refused: ${ack_1.ReasonCodes[rc]}`, rc);
|
|
17121
17121
|
client.emit("error", err);
|
|
17122
|
+
if (client.options.reconnectOnConnackError) {
|
|
17123
|
+
client["_cleanUp"](true);
|
|
17124
|
+
}
|
|
17122
17125
|
}
|
|
17123
17126
|
};
|
|
17124
17127
|
exports5.default = handleConnack;
|