Repository navigation
API Class Lobby
Defined in: src/engine/net/lobby/client.ts:426
Lobbies and matchmaking (ADR 0068), client side: static and page-wide, usable from any World. Menus poll its state.
Lobby.connect("ws://play.example.com:7777", { name: "Anne" }); // or "local"
Lobby.quickMatch({ arena: "bay" });
if (Lobby.state === "room") Lobby.setReady(true);get static error(): string;Defined in: src/engine/net/lobby/client.ts:454
The last refusal or disconnect reason ("" for none).
string
get static matchWorld(): WorldHandle | null;Defined in: src/engine/net/lobby/client.ts:474
The match client World while a match plays, else null.
WorldHandle | null
get static me(): LobbyMe | null;Defined in: src/engine/net/lobby/client.ts:469
The player's slot and whether they host their room, or null outside a room.
LobbyMe | null
get static room(): LobbyRoom | null;Defined in: src/engine/net/lobby/client.ts:464
The room the player is in (members, ready flags, host, settings, countdown), or null.
LobbyRoom | null
get static rooms(): readonly LobbyRoomInfo[];Defined in: src/engine/net/lobby/client.ts:459
Public rooms: code, name, member count, settings.
readonly LobbyRoomInfo[]
get static state(): LobbyState;Defined in: src/engine/net/lobby/client.ts:449
"offline" | "connecting" | "lobby" | "room" | "starting" | "match".
static connect(
address,
profile,
options?
): void;Defined in: src/engine/net/lobby/client.ts:440
Connect to a lobby server ("ws://host:7777"), or "local" to run the project's lobby World in this page. Returns at once.
string
void
static createRoom(options?): void;Defined in: src/engine/net/lobby/client.ts:482
string
boolean
Readonly<Record<string, string>>
void
static disconnect(): void;Defined in: src/engine/net/lobby/client.ts:444
void
static host(world, options): void;Defined in: src/engine/net/lobby/client.ts:433
Turn on the lobby service in a server World (as a World config's "lobby" does).
void
static joinRoom(code): void;Defined in: src/engine/net/lobby/client.ts:486
string
void
static kick(slot): void;Defined in: src/engine/net/lobby/client.ts:504
Host only.
number
void
static leaveMatch(): void;Defined in: src/engine/net/lobby/client.ts:514
Leave the running match and go back to the room.
void
static leaveRoom(): void;Defined in: src/engine/net/lobby/client.ts:490
void
static quickMatch(settings?): void;Defined in: src/engine/net/lobby/client.ts:478
Readonly<Record<string, string>>
void
static setReady(ready): void;Defined in: src/engine/net/lobby/client.ts:494
boolean
void
static setSetting(key, value): void;Defined in: src/engine/net/lobby/client.ts:499
Host only.
string
string
void
static start(): void;Defined in: src/engine/net/lobby/client.ts:509
Host only: start once the room has minPlayers.
void
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference