Top 5 100% Free 3d 2d Animation Software in 2021 | Free Open Source Software

Chat with

Socket.IO enables real-time bidirectional event-based communication.
It works on every platform, browser or device, focusing equally on reliability and speed.


Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.

1. Install Node.js
(Choose recommended version)

2. Open cmd prompt from windows

and type npm

3. Create a directory called as testapp in c drive 

and open again cmd

Type cd c:\

then cd testapp

5. Now we will install express and socket io

npm install socketio


npm install express

6. We will create package.json in testapp folder

npm init

 I can edit or press enter for default values.

Then type yes

Create a file inside testapp


var app = require('express')();
var server = app.listen(8080,'localhost');
var io = require('').listen(server);

app.get('/', function(req, res){
  res.sendFile(__dirname + '/index.html');

io.on('connection', function(socket){
  socket.on('chat message', function(msg){
    io.emit('chat message', msg);

and html file

<!doctype html>
    <title>Socket.IO chat</title>
      * { margin: 0; padding: 0; box-sizing: border-box; }
      body { font: 13px Helvetica, Arial; }
      form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 100%; }
      form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; }
      form button { width: 9%; background: rgb(130, 224, 255); border: none; padding: 10px; }
      #messages { list-style-type: none; margin: 0; padding: 0; }
      #messages li { padding: 5px 10px; }
      #messages li:nth-child(odd) { background: #eee; }
    <ul id="messages"></ul>
    <form action="">
      <input id="m" autocomplete="off" /><button>Send</button>
    <script src=""></script>
    <script src="http://localhost:8080/"></script>
    <script src=""></script>
      var socket = io.connect('http://localhost:8080');
        socket.emit('chat message', $('#m').val());
        return false;
      socket.on('chat message', function(msg){

Here socket.emit allows you to emit custom events on the server and client

We are done.

Now in cmd prompt
type  node index.js

do not close... it starts the server

now open html in browser

For more about

About Express