diff --git a/Project.njsproj b/Project.njsproj index 8c8f00478..f1c1237bd 100644 --- a/Project.njsproj +++ b/Project.njsproj @@ -24,7 +24,7 @@ Code - + Code diff --git a/Run.js b/Run.js index 5b47e5875..1a1891aeb 100644 --- a/Run.js +++ b/Run.js @@ -25,7 +25,7 @@ global.CUSTOM_FAIL_RESPONSE = { message: "Custom Message" }; -const EVENT_HANDLER_MODULE = require('./EventHandler.js'); +const EVENT_HANDLER_MODULE = require('./SystemEventHandler.js'); global.systemEventHandler = EVENT_HANDLER_MODULE.newSystemEventHandler() global.systemEventHandler.initialize(bootLoader) diff --git a/SystemEventHandler.js b/SystemEventHandler.js index d7bf033d0..a5d231b2b 100644 --- a/SystemEventHandler.js +++ b/SystemEventHandler.js @@ -92,7 +92,6 @@ eventHandlerName: eventHandlerName, callerId: callerId } - sendCommand(eventCommand, responseCallBack) } @@ -102,30 +101,27 @@ eventHandlerName: eventHandlerName, callerId: callerId } - sendCommand(eventCommand, responseCallBack) } function listenToEvent(eventHandlerName, eventType, extraData, callerId, responseCallBack, eventsCallBack) { - eventCommand = { + let eventCommand = { action: 'listenToEvent', eventHandlerName: eventHandlerName, eventType: eventType, extraData: extraData, callerId: callerId } - sendCommand(eventCommand, responseCallBack, eventsCallBack) } function stopListening(eventHandlerName, eventSubscriptionId, callerId, responseCallBack) { - eventCommand = { + let eventCommand = { action: 'stopListening', eventHandlerName: eventHandlerName, eventSubscriptionId: eventSubscriptionId, callerId: callerId } - sendCommand(eventCommand, responseCallBack) } @@ -137,7 +133,6 @@ event: event, callerId: callerId } - sendCommand(eventCommand, responseCallBack) } } \ No newline at end of file