@my-swu/simulator-client / MatchSessionAccess
Type Alias: MatchSessionAccess
MatchSessionAccess =
MatchAccess|MatchAccessInput
Defined in: packages/ts-sdk/src/match-session/session-state.ts:49
Access shape accepted by a match session.
Full MatchAccess responses can seed snapshot and seat state immediately. Minimal MatchAccessInput values are enough to connect or reconnect.
Example:
ts
import type { MatchSessionAccess } from '@my-swu/simulator-client'
const matchSessionAccess: MatchSessionAccess = { matchId: 'match_123', seatToken: 'seat_token_123' }
console.log(matchSessionAccess)Example
ts
import type { MatchSessionAccess } from '@my-swu/simulator-client'
const reconnectAccess: MatchSessionAccess = {
matchId: 'match_123',
seatToken: 'seat_token_123',
}
console.log(reconnectAccess.matchId)