Answers for "socket.io typescript"

0

socket.io typescript

import { createServer } from "http";
import { Server } from "socket.io";

const httpServer = createServer();
const io = new Server(httpServer, {
  // ...
});

io.on("connection", (socket) => {
  // ...
});

httpServer.listen(3000);
Posted by: Guest on June-21-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language