Ensure task module connect to local port of event server

This commit is contained in:
ph4z committed 2021-10-20 03:20:58 +00:00
1 parent a8bf27b54d
commit 05d77ba9aa
1 file changed
+3 -3
@@ -23,10 +23,10 @@
if (host === undefined) {
host = 'localhost'
}
if (port === undefined) {
if (port === undefined || port !== global.env.CLIENT_WEB_SOCKETS_INTERFACE_PORT) {
port = global.env.CLIENT_WEB_SOCKETS_INTERFACE_PORT
}
let messageCounter = 0
let commandCounter = 0
@@ -202,4 +202,4 @@
}
sendCommand(eventCommand, responseCallBack)
}
}
}