mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 01:04:05 +00:00
update review suggestions
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
2d802585ff
commit
d5d07da4ee
1 changed files with 1 additions and 2 deletions
|
@ -96,8 +96,7 @@ exports.mqttAsync = function (hostname, topic, okMessage) {
|
||||||
let client = mqtt.connect(hostname);
|
let client = mqtt.connect(hostname);
|
||||||
client.on("connect", () => {
|
client.on("connect", () => {
|
||||||
client.subscribe(topic);
|
client.subscribe(topic);
|
||||||
}
|
});
|
||||||
);
|
|
||||||
client.on("message", (messageTopic, message) => {
|
client.on("message", (messageTopic, message) => {
|
||||||
console.log(messageTopic);
|
console.log(messageTopic);
|
||||||
if (messageTopic == topic && message.toString() !== okMessage) {
|
if (messageTopic == topic && message.toString() !== okMessage) {
|
||||||
|
|
Loading…
Reference in a new issue