Permalink
Browse files

Fixed connected count

  • Loading branch information...
1 parent 71e2a19 commit 479cde5d3c8fbf76869bbd294097462bab841d3c @remy committed Apr 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -40,7 +40,7 @@ socket.addListener('listening', function(){
// Handle WebSocket Requests
socket.addListener('connection', function(conn){
- socket.send(conn.id, connected+'');
+ connected++;
socket.broadcast('Connected users: ' + connected);
conn.addListener('message', function(message){

0 comments on commit 479cde5

Please sign in to comment.