JSFiddle - React, Tailwind, and code Playground

JavaScript

var http = require('http'),  
    io = require('../')

server = http.createServer(function(req, res){ 
 // your normal server code 
 res.writeHead(200, {'Content-Type': 'text/html'}); 
 res.end('<h1>Hello world</h1>'); 
});
server.listen(84);
  
// socket.io 
var socket = io.listen(server); 
socket.on('connection', function(client){ 
  client.send("Connected!");
  client.on('message', function(data){client.broadcast(data)}) 
  client.on('disconnect', function(){ client.broadcast("disconnet") }) 
});