socket.io demo
Run:
npm install
- Run the server with:
npm start
- Open http://localhost:3000 in a browser window.
- Open http://localhost:3000 in another browser window.
- Start chatting.
- Stop the server with CTRL+C when finished.
- Broadcast a message to connected users when someone connects or disconnects.
- Add support for nicknames.
- Don’t send the same message to the user that sent it himself. Instead, append the message directly as soon as he presses enter.
- Add “{user} is typing” functionality.
- Show who’s online.
- Add private messaging.