Permalink
Browse files

tracking closed connections

  • Loading branch information...
remy committed Apr 17, 2011
1 parent 6cff3a9 commit 93869e3e52a5c05255bcd7ec04bca230006a3e46
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -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.