Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchHistoryReplayInput

Interface: MatchHistoryReplayInput ​

Defined in: packages/ts-sdk/src/resources/match-history.ts:36

Request used to load a completed server-side replay archive.

Example:

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

// Identities prove the caller owns the history row being read.
const matchHistoryReplayInput: MatchHistoryReplayInput = {
  historyId: '2f8b2c1e-0f2a-4b53-9f0f-6b4f1f3a9c11',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
}

console.log(matchHistoryReplayInput)

Extends ​

Properties ​

historyId ​

Example:

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

// Identities prove the caller owns the history row being read.
const matchHistoryReplayInput: MatchHistoryReplayInput = {
  historyId: '2f8b2c1e-0f2a-4b53-9f0f-6b4f1f3a9c11',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
}

const { historyId } = matchHistoryReplayInput

console.log(historyId)

historyId: string

Defined in: packages/ts-sdk/src/resources/match-history.ts:38

Durable history row id returned by MatchHistoryResource.list.


identities ​

Example:

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

// Identities prove the caller owns the history row being read.
const matchHistoryReplayInput: MatchHistoryReplayInput = {
  historyId: '2f8b2c1e-0f2a-4b53-9f0f-6b4f1f3a9c11',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
}

const { identities } = matchHistoryReplayInput

console.log(identities)

identities: HistoryIdentityInput[]

Defined in: packages/ts-sdk/src/generated/types/common.ts:4110

Inherited from ​

MatchHistoryReplayRequest.identities

Released under the MIT License.