https://socket.io/get-started/chat
Here are some ideas to improve the application:
- Broadcast a message to connected users when someone connects or disconnects.
- Add support for nicknames.
- Make nickname persistent over TAB reloads until manually removed. (sessionStorage, not localStorage)
- Don’t send the same message to the user that sent it. Instead, append the message directly as soon as he/she presses enter. (Doesn't make much sense)
- Add “{user} is typing” functionality.
- Show who’s online.
- Private messaging.
- Add new private message notifications and put on top of online users list
- Using commands like
/text-green-500
to colorize message, suggestions when typing command