Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / LobbyMatchmakingView

Type Alias: LobbyMatchmakingView ​

LobbyMatchmakingView = { kind: LobbyMatchmakingKind; phase: "searching"; } | { acceptDeadlineAtMs: number; acceptedPlayerIds: string[]; kind: LobbyMatchmakingKind; phase: "matchFound"; }

Defined in: packages/ts-sdk/src/resources/lobby-types.ts:291

Example:

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

const lobbyMatchmakingView: LobbyMatchmakingView = {
  "kind": "random",
  "phase": "searching",
}

console.log(lobbyMatchmakingView)

Released under the MIT License.