startServer
Function of @v12-engine/engine/server
ts
export declare function startServer(options: StartServerOptions): Promise<GameServer>;Starts a server of a game, and resolves once it listens: a lobby that seats who joins, then games of it, one after the other, each on a world made anew.
const server = await startServer( game ) const server = await startServer( rules, map, onStart: (world) = startMission(world) ) // server.port, server.close()
The parts are there on their own: GameServer.start with a GameMode, mapMode, SessionHost