client manager complete, client and client channels next

This commit is contained in:
Josh Burman
2019-03-07 20:19:13 -05:00
parent 97ed2476f4
commit 8fa7f98493
131 changed files with 10059 additions and 63 deletions

20
dist/server/clientManager.js vendored Normal file
View File

@ -0,0 +1,20 @@
"use strict";
class ClientManager {
constructor(data, ws) {
this.ws = ws;
this.client(data);
}
client(data) {
if (data.site) {
console.log('legit: ' + data.site);
}
else {
console.log('no client type designated, socket disconnect.');
this.ws.close();
}
}
}
;
module.exports = ClientManager;
// user_type: 'user', user_id: 125, site: 'mhs' }
//# sourceMappingURL=clientManager.js.map