From 05d77ba9aaee35a6c40c9e116473a014fddbd3b2 Mon Sep 17 00:00:00 2001 From: ph4z Date: Wed, 20 Oct 2021 03:20:58 +0000 Subject: [PATCH] Ensure task module connect to local port of event server --- Projects/Foundations/TS/Task-Modules/EventServerClient.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Projects/Foundations/TS/Task-Modules/EventServerClient.js b/Projects/Foundations/TS/Task-Modules/EventServerClient.js index add819ab3..9c1743978 100644 --- a/Projects/Foundations/TS/Task-Modules/EventServerClient.js +++ b/Projects/Foundations/TS/Task-Modules/EventServerClient.js @@ -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) } -} \ No newline at end of file +}