@colyseus/core
Version:
Multiplayer Framework for Node.js.
12 lines (11 loc) • 565 B
TypeScript
/**
* Raw Node.js adapter for Colyseus matchmaking routes used by `colyseus/vite`.
*
* This file exists specifically so the Vite plugin can share Vite's dev HTTP
* server while still exposing the Colyseus `/matchmake/*` endpoints.
*
* Keep the matchmaking behavior itself in `router/default_routes.ts` and use
* this file only as the thin raw Node/Express adapter around it.
*/
import type http from 'http';
export declare function createNodeMatchmakingMiddleware(): (req: http.IncomingMessage, res: http.ServerResponse, next: () => void) => Promise<void>;