text: const app = require('express')();
  const http = require('http').createServer(app);
  const io = require('socket.io')(http);
  
  io.on('connection', (socket)=> {
        console.log('User Online');
  
        socket.on('canvas-data', (data)=> {
              socket.broadcast.emit('canvas-data', data);
              console.log("Canvas Received");
        });
  });
  
  const server_port = process.env.YOUR_PORT || process.env.PORT || 5000;
  http.listen(server_port, () => {
      console.log("Started on : "+ server_port);
  })