It is a chat made with socket.io to exemplify the basic functioning of websockets. This release is just a demo, so it doesn't follow best practices. Never use this code in production, just for learning.
Install Chat with npm
npm install chat_exemple_websocket
cd chat_exemple_websocket
node server.js
Clone project
git clone https://github.com/sergiotcnolivre/chat_exemple_websocket.git
Enter in folder of project
cd chat_exemple_websocket
Install as dependencies
npm install
Run server
node server.js
Application run in http://localhost:3000