chore: Update dependencies (#18459)

* fix(ignore): update dependencies

* Make compatible with MQTT 5

* updates

---------

Co-authored-by: Koenkk <Koenkk@users.noreply.github.com>
This commit is contained in:
Koen KantersandKoenkk authored and GitHub committed 2023-08-08 20:04:22 +02:00
1 parent a892a1b898
commit 53cb42103c
7 files changed
+1038 -949

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ export default class Frontend extends Extension {
if (!isBinary && data) {
const message = data.toString();
const {topic, payload} = JSON.parse(message);
this.mqtt.onMessage(`${this.mqttBaseTopic}/${topic}`, stringify(payload));
this.mqtt.onMessage(`${this.mqttBaseTopic}/${topic}`, Buffer.from(stringify(payload)));
}
});