Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchAccessInput

Interface: MatchAccessInput ​

Defined in: packages/ts-sdk/src/resources/match-types.ts:104

Minimal data needed to open one match socket.

This is the small persisted shape needed for reconnecting one private seat.

Example:

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

const matchAccessInput: MatchAccessInput = { matchId: 'match_123', seatToken: 'seat_token_123' }

console.log(matchAccessInput)

Example ​

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

const reconnectAccess: MatchAccessInput = {
  matchId: 'match_123',
  seatToken: 'seat_token_123',
}

console.log(reconnectAccess.matchId)

See ​

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

Extends ​

Properties ​

matchId ​

Example:

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

const matchAccessInput: MatchAccessInput = { matchId: 'match_123', seatToken: 'seat_token_123' }

const { matchId } = matchAccessInput

console.log(matchId)

matchId: string

Defined in: packages/ts-sdk/src/resources/match-types.ts:82

Public match id.

Inherited from ​

MatchReference.matchId


replaySeed? ​

Example:

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

const matchAccessInput: MatchAccessInput = { matchId: 'match_123', seatToken: 'seat_token_123' }

const { replaySeed } = matchAccessInput

console.log(replaySeed)

optional replaySeed?: string

Defined in: packages/ts-sdk/src/resources/match-types.ts:112

Resolved seed for a private solo-vs-AI match, retained across reconnects.


seatToken ​

Example:

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

const matchAccessInput: MatchAccessInput = { matchId: 'match_123', seatToken: 'seat_token_123' }

const { seatToken } = matchAccessInput

console.log(seatToken)

seatToken: string

Defined in: packages/ts-sdk/src/resources/match-types.ts:108

Private token authorizing one seat.

Released under the MIT License.