Browse Source

account for socket closures

master
Lloyd Brookes 11 years ago
parent
commit
c2c2c29ec5
  1. 3
      ws.js

3
ws.js

@ -110,6 +110,9 @@ if (argv.help){
console.column(12).write((w.bytesToSize(total.bytes, 2) + " ").slice(0,12));
};
console.column(24).write(++total.connections);
socket.on("close", function(){
console.column(24).write(--total.connections);
});
});
}
}
Loading…
Cancel
Save