From b273101b61e628765d9faf6ef9c1dd3b3902af8b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 3 Jun 2018 17:00:54 -0600 Subject: [PATCH] Work on Events system: + system_event.js + codes.l33t.enigma.system.user_upload and codes.l33t.enigma.system.user_download events --- core/system_events.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 core/system_events.js diff --git a/core/system_events.js b/core/system_events.js new file mode 100644 index 00000000..706ad8a5 --- /dev/null +++ b/core/system_events.js @@ -0,0 +1,14 @@ +/* jslint node: true */ +'use strict'; + +module.exports = { + ClientConnected : 'codes.l33t.enigma.system.connected', // { client, connectionCount } + ClientDisconnected : 'codes.l33t.enigma.system.disconnected', // { client, connectionCount } + TermDetected : 'codes.l33t.enigma.system.term_detected', // { client } + + // User - includes { user, ...} + UserLogin : 'codes.l33t.enigma.system.user_login', + UserLogoff : 'codes.l33t.enigma.system.user_logoff', + UserUpload : 'codes.l33t.enigma.system.user_upload', // {..., files[ fileEntry, ...] } + UserDownload : 'codes.l33t.enigma.system.user_download', // {..., files[ fileEntry, ...] } +}; \ No newline at end of file