mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
leftovers
This commit is contained in:
parent
22ef4c37e1
commit
ccc82829e9
@ -1,3 +1,4 @@
|
|||||||
|
/*
|
||||||
var app = require('http').createServer();
|
var app = require('http').createServer();
|
||||||
global.io = require("socket.io")(app);
|
global.io = require("socket.io")(app);
|
||||||
var User = require("./User");
|
var User = require("./User");
|
||||||
@ -12,31 +13,39 @@ var Socket = (function(){
|
|||||||
if(!(this instanceof Socket)){
|
if(!(this instanceof Socket)){
|
||||||
return (new 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 = {};
|
this.roomCollection = {};
|
||||||
app.listen(this.port);
|
app.listen(this.port);
|
||||||
this.io = io;
|
this.io = io;
|
||||||
this._events();
|
this._events();
|
||||||
};
|
};
|
||||||
var r = Socket.prototype;
|
var r = Socket.prototype;
|
||||||
/**
|
*/
|
||||||
|
/**
|
||||||
* methods && properties here
|
* methods && properties here
|
||||||
* r.property = null;
|
* r.property = null;
|
||||||
* r.getProperty = function() {...}
|
* r.getProperty = function() {...}
|
||||||
*/
|
*//*
|
||||||
|
|
||||||
r.io = null;
|
r.io = null;
|
||||||
r.port = 16918;
|
r.port = 16918;
|
||||||
r.connections = null;
|
r.connections = null;
|
||||||
r.roomCollection = null;
|
r.roomCollection = null;
|
||||||
/*
|
|
||||||
r.matchmaker = null;
|
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
|
r.matchmaker = null;
|
||||||
|
*//*
|
||||||
|
|
||||||
|
|
||||||
r._events = function(){
|
r._events = function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -93,4 +102,4 @@ var Socket = (function(){
|
|||||||
return Socket;
|
return Socket;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = Socket;
|
module.exports = Socket;*/
|
||||||
|
Loading…
Reference in New Issue
Block a user