/
docNemo
/
tactic-hack-server
Обзор
Документация
Войти
/
docNemo
/
tactic-hack-server
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/app.ts
14 строк
478 B
neo
Implement matchmaking lobby, authoritative GameRoom with timers and reconnect, integration tests
19 июл 2026, 00:10
19 июл 2026, 00:10
bed576b
Код
Авторство
О чём код?
import { Server } from "@colyseus/core"; import { WebSocketTransport } from "@colyseus/ws-transport"; import { ROOM_GAME, ROOM_LOBBY } from "tactic-hack-core"; import { GameRoom } from "./rooms/GameRoom.js"; import { LobbyRoom } from "./rooms/LobbyRoom.js"; export function createGameServer(): Server { const server = new Server({ transport: new WebSocketTransport(), }); server.define(ROOM_LOBBY, LobbyRoom); server.define(ROOM_GAME, GameRoom); return server; }