Skip to content

createGameServer

createGameServer(o?): GameServer

A complete game server: every .html file in games gets live rooms, an invite link and anonymous players. Plain node:http + ws.

import { createGameServer } from "tickcli/serve";
const app = createGameServer({ games: "./games", saves: "./saves" });
await app.listen(8080); // http://localhost:8080/ lists the games

GameServerOptions = {}

GameServer