diff --git a/core/events.js b/core/events.js index 1838e087..b1e15c21 100644 --- a/core/events.js +++ b/core/events.js @@ -10,11 +10,21 @@ const _ = require('lodash'); const async = require('async'); const glob = require('glob'); +const SYSTEM_EVENTS = { + ClientConnected : 'codes.l33t.enigma.system.connected', + ClientDisconnected : 'codes.l33t.enigma.system.disconnected', + TermDetected : 'codes.l33t.enigma.term_detected', +}; + module.exports = new class Events extends events.EventEmitter { constructor() { super(); } + getSystemEvents() { + return SYSTEM_EVENTS; + } + addListener(event, listener) { Log.trace( { event : event }, 'Registering event listener'); return super.addListener(event, listener);