Testing the users list in the chatroom

Inside the browser I can open up the Developer Tools to view the console log statements, and I'm going to give the app a refresh. If I do refresh the application we see a Users list and we have Andrew printing twice:

If I refresh the page for a second time, we have Andrew printing three times:

As you can see this is happening because we're not removing users from the list when they leave the chat application. That's the second goal in this section. We currently have a user list. All we need to do is update ...

Get Advanced Node.js Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.