@my-swu/simulator-client / LobbyResponse
Interface: LobbyResponse
Defined in: packages/ts-sdk/src/resources/lobby-types.ts:258
Example:
ts
import type { LobbyResponse } from '@my-swu/simulator-client'
const lobbyResponse: LobbyResponse = {
"snapshot": {
"lobbyId": 'example',
"status": "waiting",
"visibility": "private",
"config": {
"type": "match",
"format": "premier",
"playerCount": 2,
"bestOfMatches": 1,
"gameTimerEnabled": false,
},
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"chat": [],
"activity": [],
"spectators": [],
},
}
console.log(lobbyResponse)Properties
snapshot
Example:
ts
import type { LobbyResponse } from '@my-swu/simulator-client'
const lobbyResponse: LobbyResponse = {
"snapshot": {
"lobbyId": 'example',
"status": "waiting",
"visibility": "private",
"config": {
"type": "match",
"format": "premier",
"playerCount": 2,
"bestOfMatches": 1,
"gameTimerEnabled": false,
},
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"chat": [],
"activity": [],
"spectators": [],
},
}
const { snapshot: matchSnapshot } = lobbyResponse
console.log(matchSnapshot)snapshot:
LobbySnapshot
Defined in: packages/ts-sdk/src/resources/lobby-types.ts:259
