Skip to content
Browse files

tracking closed connections

  • Loading branch information...
1 parent 6cff3a9 commit 93869e3e52a5c05255bcd7ec04bca230006a3e46 @remy committed Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
2 server.js
@@ -48,7 +48,7 @@ socket.addListener('connection', function(conn){
});
});
-socket.addListener('close', function(conn){
+socket.addListener('disconnected', function(conn){
connected--;
socket.broadcast('User left, connected now: ' + connected);
});

0 comments on commit 93869e3

Please sign in to comment.
Something went wrong with that request. Please try again.