Skip to content

Lobby

new Lobby(): Lobby

Lobby

id: bigint

deleteData(key): boolean

Deletes one metadata value of this lobby. Only the lobby owner can delete lobby data.

string

metadata key to delete

boolean

true when Steam accepted the change


getData(key): string | null

Reads one metadata value of this lobby.

string

metadata key

string | null

the value, or null when the key is not set


getFullData(): Record<string, string>

Get an object containing all the lobby data

Record<string, string>


getMemberCount(): bigint

Returns the number of members currently in this lobby.

bigint

the member count


getMemberLimit(): bigint | null

Returns the maximum number of members this lobby allows.

bigint | null

the member limit, or null when Steam has no metadata for the lobby


getMembers(): PlayerSteamId[]

Returns the members of this lobby.

PlayerSteamId[]

a PlayerSteamId for each member, empty when there are none


getOwner(): PlayerSteamId

Returns the owner of this lobby.

PlayerSteamId

the owner’s PlayerSteamId


join(): Promise<Lobby>

Joins this lobby.

Promise<Lobby>

a Lobby for the joined lobby; rejects with Failed to join lobby when Steam refuses the join


leave(): void

Leaves this lobby.

void


mergeFullData(data): boolean

Merge current lobby data with provided data in a single batch

Record<string, string>

boolean

true if all data was set successfully


openInviteDialog(): void

Opens the Steam invite dialog for this lobby.

void


setData(key, value): boolean

Sets one metadata value of this lobby. Only the lobby owner can set lobby data.

string

metadata key

string

value to store

boolean

true when Steam accepted the change


setJoinable(joinable): boolean

Sets whether new users may join this lobby. Only the lobby owner can change this.

boolean

true to allow joining, false to block it

boolean

true when Steam accepted the change

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.