Repository navigation
API Class Lobby
Defined in: src/engine/net/lobby/client.ts:427
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:455
The last refusal or disconnect reason ("" for none).
string
get static matchWorld(): WorldHandle | null;Defined in: src/engine/net/lobby/client.ts:475
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:470
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:465
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:460
Public rooms: code, name, member count, settings.
readonly LobbyRoomInfo[]
get static state(): LobbyState;Defined in: src/engine/net/lobby/client.ts:450
"offline" | "connecting" | "lobby" | "room" | "starting" | "match".
static connect(
address,
profile,
options?
): void;Defined in: src/engine/net/lobby/client.ts:441
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:483
string
boolean
Readonly<Record<string, string>>
void
static disconnect(): void;Defined in: src/engine/net/lobby/client.ts:445
void
static host(world, options): void;Defined in: src/engine/net/lobby/client.ts:434
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:487
string
void
static kick(slot): void;Defined in: src/engine/net/lobby/client.ts:505
Host only.
number
void
static leaveMatch(): void;Defined in: src/engine/net/lobby/client.ts:515
Leave the running match and go back to the room.
void
static leaveRoom(): void;Defined in: src/engine/net/lobby/client.ts:491
void
static quickMatch(settings?): void;Defined in: src/engine/net/lobby/client.ts:479
Readonly<Record<string, string>>
void
static setReady(ready): void;Defined in: src/engine/net/lobby/client.ts:495
boolean
void
static setSetting(key, value): void;Defined in: src/engine/net/lobby/client.ts:500
Host only.
string
string
void
static start(): void;Defined in: src/engine/net/lobby/client.ts:510
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