2. What is soket.IO?
Socket.IO INSTALLATION
SIMPLE CHAT APPLICATION
REFERENCES
3. Socket.IO is a Javascript library that runs server-side on Node.js
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
Server: socket.io
A client library that loads on the browser side: socket.io-client
4. Download and install node.js from
https://nodejs.org/en/
Open command line and go to your project
folder.
“npm install --save express” copy-paste and
enter.
“npm install --save socket.io” copy-paste and
enter.
Now, you can include socket.io library to
your project files.