1
0
Fork 0

general - moved event handler to global['event']

master
Ruben Meyer 2 years ago
parent fd9e52bd65
commit f79d5771f1
Signed by: rxbn_
GPG Key ID: BE3BF898BE352FE2

@ -8,7 +8,7 @@
// GCS: Global Communication System
let EventEmitter = require('events');
global['gcs'] = new EventEmitter.EventEmitter();
global['event'] = new EventEmitter.EventEmitter();
/**
* Error Message Handler
@ -16,7 +16,7 @@ global['gcs'] = new EventEmitter.EventEmitter();
* @param {String} message data: "MODULE SEPARATOR MESSAGE"
* @return {void}
*/
global['gcs'].on('err', (data) => {
global['event'].on('err', (data) => {
separator = "->";
i = data.indexOf(separator);
parts = [data.slice(0, i), data.slice(i+separator.length)];

Loading…
Cancel
Save