Adding functionality to assign a name with every connected socket.
Making it so that if a user tries to create an already existing chat room, he'll be redirected to it. Previously, it would do nothing.
Making it so that all errors get passed along to the error middleware.
Adding code to save all messages sent inside the database. The messages contain references to their rooms and the rooms contain arrays of references to their messages.
Upon sign-in, users can listen to an event called 'chat history' that'll provide them the an array of the room's entire chat history. :)
Restructuring the JSON sent to the user upon each message.
Adding front-end changes to render the data sent by the server's 'chat history' event. New users can now see the entire chat history upon login.
Making a message event emit to the author of the message. This way, he can see his message as well.