From 70d2bf26ee45f04d39ea771203f65b52d3a8b1c2 Mon Sep 17 00:00:00 2001 From: steevLP Date: Thu, 26 Sep 2019 00:11:30 +0200 Subject: [PATCH] cleared out unnecessary index comments --- index.js | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/index.js b/index.js index adb6e4d..f3252f1 100644 --- a/index.js +++ b/index.js @@ -36,37 +36,9 @@ wss.on('connection', (ws) => { let payload = JSON.parse(data); //console.log('WSS: ' + payload['event']); let events = [ - {name:'login', function() {ws_login(payload, db_con, ws, crypt)}}, - {name:'logout', function() {ws_logout(payload, db_con, ws)}}, + {name:'event', function() {console.log('executes this event')}}, ]; listener(events,payload.event); - /** - * logout: - * Removes Session Key - * and sends packet to redirect from the user area - * ends connection - * register: - * User Folder Structure: - * Usersroot(named like the user) I--> space (where files get stored) - * I--> meta (Where user infos get stored) - * Ends Connection - * Database Oriented Data Management - * getData - * Sends Requested data - * - * Ends Connection - * writeData - * Wrights Data to the Database - * Check if user id is given - * Ends Connection - * Physical Data management - * updload - * Takes Uploaded Data and places it in the Users Space - * Ends Connection - * download - * Serves Requested Files from the Users Space - * Ends Connection - */ } }); });