Skip to content

API Interface LobbyOptions

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

Interface: LobbyOptions

Defined in: src/engine/net/lobby/protocol.ts:22

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

Properties

clientTemplate?

clientTemplate?: string;

Defined in: src/engine/net/lobby/protocol.ts:26

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


fillWithBots?

fillWithBots?: boolean;

Defined in: src/engine/net/lobby/protocol.ts:32

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


joinTimeout?

joinTimeout?: number;

Defined in: src/engine/net/lobby/protocol.ts:43

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


matchTemplate

matchTemplate: string;

Defined in: src/engine/net/lobby/protocol.ts:24

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


maxPlayers?

maxPlayers?: number;

Defined in: src/engine/net/lobby/protocol.ts:28

Room size. Default 8.


minPlayers?

minPlayers?: number;

Defined in: src/engine/net/lobby/protocol.ts:30

Members needed to start. Default 1.


quickMatchWait?

quickMatchWait?: number;

Defined in: src/engine/net/lobby/protocol.ts:41

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/net/lobby/protocol.ts:39

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/net/lobby/protocol.ts:34

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

Clone this wiki locally