Skip to content

@my-swu/simulator-client


@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)

See

https://simulator-sdk.my-swu.com/guide/reconnect

Released under the MIT License.