This app uses socket.io for dispatching and subscribing events.
- Joining chat room with a username
- Notifies when user joins or leaves the chat room
Clone this repo on your machine
$ git clone https://github.com/saaagar/socket-demo.git
cd to the freshly cloned dir and run
$ node index.js
Server listens to port 3000, but you can change to any port number that is available on your machine.