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);