Skip to content

Commit

Permalink
Log number of users after deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeinzer committed May 12, 2020
1 parent e40a82a commit c8e3784
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/parsers/handleClose.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const handleClose = (app, ws, user) => () => {

// removing user from app memory
app.users.delete(user.id);

console.log(`Current number of users: ${app.users.size}`);
};

module.exports = handleClose;

0 comments on commit c8e3784

Please sign in to comment.