Work on Events system:

+ system_event.js
+ codes.l33t.enigma.system.user_upload and codes.l33t.enigma.system.user_download events
This commit is contained in:
Bryan Ashby 2018-06-03 17:00:54 -06:00
parent 2eb07aebb8
commit b273101b61
1 changed files with 14 additions and 0 deletions

14
core/system_events.js Normal file
View File

@ -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, ...] }
};