This demo shows how to establish a websocket connection and send and receive messages through socket.io.
Make sure you have nvm installed and run:
git clone git@github.com:luciopaiva/socketio-with-express.git
cd socketio-with-express
nvm install
npm install
Then start the sample server:
node server
And finally head your browser to http://localhost:3000 to see it working.
Also see how to use socket.io with Restify.