Skip to content

API Interface LobbyOptions

github-actions[bot] edited this page Nov 29, 2026 · 2 revisions

Interface: LobbyOptions

Defined in: src/engine/core/lobbyOptions.ts:8

The lobby service's options: a server World's "lobby" config, or Lobby.host(world, options).

Properties

clientTemplate?

clientTemplate?: string;

Defined in: src/engine/core/lobbyOptions.ts:12

The client template players make their match client World from (sent to clients).


fillWithBots?

fillWithBots?: boolean;

Defined in: src/engine/core/lobbyOptions.ts:18

Empty slots up to maxPlayers are bots in the match. Default false.


joinTimeout?

joinTimeout?: number;

Defined in: src/engine/core/lobbyOptions.ts:29

Seconds a match waits for its first player to connect before it ends. Default 30.


matchTemplate

matchTemplate: string;

Defined in: src/engine/core/lobbyOptions.ts:10

The server template (ADR 0062) each match World is made from. Required.


maxPlayers?

maxPlayers?: number;

Defined in: src/engine/core/lobbyOptions.ts:14

Room size. Default 8.


minPlayers?

minPlayers?: number;

Defined in: src/engine/core/lobbyOptions.ts:16

Members needed to start. Default 1.


quickMatchWait?

quickMatchWait?: number;

Defined in: src/engine/core/lobbyOptions.ts:27

Seconds a quick-match room waits for more players before it starts on its own. Default 10.


settings?

settings?: Readonly<Record<string, 
  | readonly string[]
  | {
  choices: readonly string[];
  default?: string;
}>>;

Defined in: src/engine/core/lobbyOptions.ts:25

Room settings and their allowed values, e.g. { "arena": ["bay", "open", "maze"] }: the first value is the default. Or { "arena": { "choices": [...], "default": "open" } }.


startCountdown?

startCountdown?: number;

Defined in: src/engine/core/lobbyOptions.ts:20

Seconds between everyone being ready and the match starting. Default 3.

Clone this wiki locally