added checkpoint output, setting up a channel

This commit is contained in:
logsol 2012-08-31 19:23:51 +02:00
parent dd154aa576
commit c2ed00cb9b
10 changed files with 115 additions and 79 deletions

View file

@ -26,6 +26,7 @@ function (http, nodeStatic) {
switch(true) {
case req.url == '/':
fileServer.serveFile('./static/html/index.html', 200, {}, req, res);
console.checkpoint('HTTP Server serves index');
break;
case req.url == '/client.js':
@ -56,6 +57,7 @@ function (http, nodeStatic) {
}
);
this.server.listen(options.port);
console.checkpoint('start HTTP server');
}
HttpServer.prototype.getServer = function () {

View file

@ -23,8 +23,11 @@ function (io) {
});
this.socket.on('connection', function (user) {
console.checkpoint('socket receiving connection');
self.onConnection(user);
});
console.checkpoint('start Socket Listener');
}
Socket.prototype.onConnection = function (socketLink) {