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;*/