What is soket.IO?
SIMPLE CHAT APPLICATION
and in the browser.
Socket.IO runs asynchronously.
Socket.IO is a WebSocket API created by Guillermo Rauch, CTO
of LearnBoost and lead scientist of LearnBoost Labs. Socket.IO
will use feature detection to decide if the connection will be
established with WebSocket, AJAX long polling, Flash, etc.,
making creating realtime apps that work everywhere a snap.
Socket.IO also provides an API for Node.js which looks very much
like the client side API.
Socket.IO is composed of two part:
A server that integrates with (or mounts on) the Node.JS HTTP
A client library that loads on the browser side: socket.io-client
Download and install node.js from
Open command line and go to your project
“npm install --save express” copy-paste and
“npm install --save socket.io” copy-paste and
Now, you can include socket.io library to
your project files.