From ccc82829e98f798d408c8ce39e80425ed8d86809 Mon Sep 17 00:00:00 2001 From: exane Date: Thu, 18 Jun 2015 20:52:58 +0200 Subject: [PATCH] leftovers --- server/Socket.js | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/server/Socket.js b/server/Socket.js index a1c7d35..efb40b5 100644 --- a/server/Socket.js +++ b/server/Socket.js @@ -1,3 +1,4 @@ +/* var app = require('http').createServer(); global.io = require("socket.io")(app); var User = require("./User"); @@ -12,31 +13,39 @@ var Socket = (function(){ if(!(this instanceof Socket)){ return (new Socket()); } - /** - * constructor here - */ - this.connections = Connections(); - /* - this.matchmaker = Matchmaker(this.connections); */ +/** + * constructor here + *//* + + this.connections = Connections(); + */ +/* + this.matchmaker = Matchmaker(this.connections); + *//* + this.roomCollection = {}; app.listen(this.port); this.io = io; this._events(); }; var r = Socket.prototype; - /** + */ +/** * methods && properties here * r.property = null; * r.getProperty = function() {...} - */ + *//* + r.io = null; r.port = 16918; r.connections = null; r.roomCollection = null; - /* - r.matchmaker = null; */ +/* + r.matchmaker = null; + *//* + r._events = function(){ var self = this; @@ -93,4 +102,4 @@ var Socket = (function(){ return Socket; })(); -module.exports = Socket; \ No newline at end of file +module.exports = Socket;*/