Skip to content

Commit

Permalink
Fixed connected count
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Apr 17, 2011
1 parent 71e2a19 commit 479cde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 479cde5

Please sign in to comment.