updated structure

This commit is contained in:
2016-08-14 03:25:26 +02:00
parent 8dfc39be75
commit 7b2b2bd151
12 changed files with 115 additions and 39 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ export class Smartsocket {
*/
private _handleSocketConnection(socketArg) {
let socketConnection: SocketConnection = new SocketConnection({
alias:undefined,
authenticated:false,
role:undefined,
socket:socketArg
});
plugins.beautylog.log("Socket connected. Trying to authenticate...")
@@ -40,7 +42,7 @@ export class Smartsocket {
startServer = () => {
this.io = plugins.socketIo(this.options.port);
this.io.on('connection', (socketArg) => {
this.io.on("connection", (socketArg) => {
this._handleSocketConnection(socketArg);
});
}