Bugfix: update mqtt connections dictionary (#1281)

This commit is contained in:
Alex McLean 2025-02-07 16:38:28 +00:00 committed by GitHub
parent 07b0a2e0f0
commit cda79f3e5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,7 @@ Pattern.prototype.mqtt = function (
cx = connections[key]; cx = connections[key];
} else { } else {
cx = new Paho.Client(host, client); cx = new Paho.Client(host, client);
connections[key] = cx;
cx.onConnectionLost = onConnectionLost; cx.onConnectionLost = onConnectionLost;
cx.onMessageArrived = onMessageArrived; cx.onMessageArrived = onMessageArrived;
const props = { const props = {