You've already forked uptime-kuma
mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-15 01:44:19 +02:00
update review suggestions
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
@ -96,8 +96,7 @@ exports.mqttAsync = function (hostname, topic, okMessage) {
|
||||
let client = mqtt.connect(hostname);
|
||||
client.on("connect", () => {
|
||||
client.subscribe(topic);
|
||||
}
|
||||
);
|
||||
});
|
||||
client.on("message", (messageTopic, message) => {
|
||||
console.log(messageTopic);
|
||||
if (messageTopic == topic && message.toString() !== okMessage) {
|
||||
|
Reference in New Issue
Block a user