Permalink
Browse files

Fixing a bug in the example

  • Loading branch information...
1 parent 14a044c commit 55a8bf347cd06c845689ceab81db0471450bfb5f @saikat committed Sep 2, 2010
Showing with 8 additions and 8 deletions.
  1. +4 −4 README.md
  2. +4 −4 example/server.js
View
@@ -22,19 +22,19 @@ You will need to install [Socket.IO-node](http://github.com/learnboost/socket.io
});
server.listen(8080);
- logger.authToken = 'my_secret_token_for_the_dashboard_client';
+ log.authToken = 'my_secret_token_for_the_dashboard_client';
var socket = io.listen(server);
socket.on('connection', function(client){
- logger.listen('message', client);
- logger.listen('disconnect', client);
+ log.listen('message', client);
+ log.listen('disconnect', client);
client.on('message', function(message) {
});
client.on('disconnect', function() {
});
});
- logger.listen('connection', socket);
+ log.listen('connection', socket);
Running the demo
================
View
@@ -6,16 +6,16 @@ server = http.createServer(function(req, res){
});
server.listen(8080);
-logger.authToken = 'my_secret_token_for_the_dashboard_client';
+log.authToken = 'my_secret_token_for_the_dashboard_client';
var socket = io.listen(server);
socket.on('connection', function(client){
- logger.listen('message', client);
- logger.listen('disconnect', client);
+ log.listen('message', client);
+ log.listen('disconnect', client);
client.on('message', function(message) {
});
client.on('disconnect', function() {
});
});
-logger.listen('connection', socket);
+log.listen('connection', socket);

0 comments on commit 55a8bf3

Please sign in to comment.