Skip to content

rafalfaro18/socket.io-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socket.io-demo

socket.io demo

Set Up

Run:

npm install

Usage

  1. Run the server with:
npm start
  1. Open http://localhost:3000 in a browser window.
  2. Open http://localhost:3000 in another browser window.
  3. Start chatting.
  4. Stop the server with CTRL+C when finished.

To Do:

  • 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.