@my-swu/simulator-client / MatchSpectatorAccessInput
Interface: MatchSpectatorAccessInput
Defined in: packages/ts-sdk/src/resources/match-types.ts:115
Public reference to one match.
Use this shape for routes, lobby sharing, or join flows where no private seat credential should be exposed.
Example:
ts
import type { MatchSpectatorAccessInput } from '@my-swu/simulator-client'
const matchSpectatorAccessInput: MatchSpectatorAccessInput = {
matchId: 'match_123',
spectatorToken: 'spectator_token_123',
}
console.log(matchSpectatorAccessInput)Example
ts
import type { MatchReference } from '@my-swu/simulator-client'
const matchReference: MatchReference = { matchId: 'match_123' }
console.log(matchReference.matchId)See
https://simulator-sdk.my-swu.com/guide/match-lifecycle
Extends
Properties
matchId
Example:
ts
import type { MatchSpectatorAccessInput } from '@my-swu/simulator-client'
const matchSpectatorAccessInput: MatchSpectatorAccessInput = {
matchId: 'match_123',
spectatorToken: 'spectator_token_123',
}
const { matchId } = matchSpectatorAccessInput
console.log(matchId)matchId:
string
Defined in: packages/ts-sdk/src/resources/match-types.ts:82
Public match id.
Inherited from
spectatorToken
Example:
ts
import type { MatchSpectatorAccessInput } from '@my-swu/simulator-client'
const matchSpectatorAccessInput: MatchSpectatorAccessInput = {
matchId: 'match_123',
spectatorToken: 'spectator_token_123',
}
const { spectatorToken } = matchSpectatorAccessInput
console.log(spectatorToken)spectatorToken:
string
Defined in: packages/ts-sdk/src/resources/match-types.ts:119
Private token authorizing read-only spectator access.
