Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchAccessInput

Interface: MatchAccessInput

Defined in: packages/ts-sdk/src/resources/matches.ts:83

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/matches.ts:61

Public match id.

Inherited from

MatchReference.matchId


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/matches.ts:87

Private token authorizing one seat.

Released under the MIT License.