728x90 반응형 SMALL 채팅서버1 socket.io :: koa, hapi, fastify 성능은 Hapi > Koa > Fastify 순. Koa import Koa from 'koa'; import Router from 'koa-router'; import { createServer } from 'http'; import { Server } from 'socket.io'; import serve from 'koa-static'; const app = new Koa(); const router = new Router(); router.get('/', async (ctx) => { ctx.body = 'Hello, world!'; }); const server = createServer(app.callback()); const socketServer = new Server(server, { c.. 2023. 4. 25. 이전 1 다음 728x90 반응형 LIST