Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / LobbyErrorCode

Type Alias: LobbyErrorCode ​

LobbyErrorCode = "lobby_not_found" | "lobby_full" | "lobby_closed" | "lobby_started" | "invalid_lobby_player_token" | "lobby_host_required" | "lobby_kicked" | "invalid_lobby_request" | "lobby_start_in_progress" | "lobby_deck_required" | "lobby_trilogy_setup_required" | "lobby_players_not_ready" | "lobby_seats_not_filled" | "lobby_departure_in_progress" | "lobby_matchmaking_owned" | "lobby_host_not_kickable" | "lobby_spectators_unsupported" | "lobby_match_decision_required" | "lobby_match_decision_unavailable" | "lobby_matchmaking_locked" | "lobby_not_in_matchmaking" | "lobby_player_not_found" | "lobby_spectator_not_found" | "lobby_chat_message_empty" | "lobby_player_name_empty" | "lobby_limited_event_incomplete" | "lobby_limited_match_started" | "lobby_match_return_unavailable" | "lobby_occupied_slots"

Defined in: packages/ts-sdk/src/generated/types/common.ts:3554

Stable machine-readable codes for rejected lobby requests.

Every lobby HTTP error body and socket rejection close reason uses one of these values as its code. Human-readable message text stays English diagnostics; clients branch and localize on the code. Codes are additive: a code not listed here (older or newer server) should fall back to the message.

Example:

ts
import type { LobbyErrorCode } from '@my-swu/simulator-client'

const lobbyErrorCode: LobbyErrorCode = "lobby_not_found"

console.log(lobbyErrorCode)

Released under the MIT License.