Foundations / Client: Servers now inside the CL object.

This commit is contained in:
Luis Fernando Molina committed 2021-08-24 12:51:50 +02:00
1 parent 30beda6da1
commit 2f0c8ec695
5 files changed
+57 -70

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
exports.newTaskManagerServer = function newTaskManagerServer(WEB_SOCKETS_INTERFACE, EVENT_SERVER) {
exports.newTaskManagerServer = function newTaskManagerServer() {
let thisObject = {
initialize: initialize,
@@ -263,7 +263,7 @@
responseWaiters.set(command.callerId, responseCallBack)
}
EVENT_SERVER.onMessage(JSON.stringify(command), thisObject.onMessage)
CL.servers.EVENT_SERVER.onMessage(JSON.stringify(command), thisObject.onMessage)
} catch (err) {
console.log('[ERROR] Client -> Task Manager Server -> sendCommand -> Error Sending Command to Events Server -> command = ' + JSON.stringify(command))
console.log('[ERROR] Client -> Task Manager Server -> sendCommand -> Error Sending Command to Events Server -> error = ' + err.stack)