I am working on a real time chat feature in my application using Socket.io. I have the sockets set up, and users are able to send messages to each other.
I defined th