mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added checkpoint output, setting up a channel
This commit is contained in:
parent
dd154aa576
commit
c2ed00cb9b
10 changed files with 115 additions and 79 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue