From 482b3f9233f6b0ac78a1c9f6e91ffad149facea5 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 13 Jan 2022 11:20:32 +0800 Subject: [PATCH] Update server/util-server.js Co-authored-by: Adam Stachowicz --- server/util-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util-server.js b/server/util-server.js index 08d17b774..27d2ab857 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -94,7 +94,7 @@ exports.mqttAsync = function (hostname, topic, okMessage, options = {}) { return new Promise((resolve, reject) => { const { port, username, password, interval = 20 } = options; try { - // Adds mqtt protocol to the hostname if not already present + // Adds MQTT protocol to the hostname if not already present if (!/^(?:http|mqtt)s?:\/\//.test(hostname)) { hostname = "mqtt://" + hostname; }