mirror of
https://github.com/exane/not-gwent-online
synced 2024-12-23 21:03:14 +00:00
leftovers
This commit is contained in:
parent
22ef4c37e1
commit
ccc82829e9
@ -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;
|
||||
module.exports = Socket;*/
|
||||
|
Loading…
Reference in New Issue
Block a user