const app = express(); const server = http.Server(app); const io = new Server(server);
import { Server } from 'socket.io';
import express from 'express';
import { createServer } from 'http';
const app = express();
const server = createServer(app);
const socketio = new Server(server);