Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchSessionConnectOptions

Interface: MatchSessionConnectOptions ​

Defined in: packages/ts-sdk/src/match-session/session-state.ts:109

Options for opening or reopening one match session socket.

Example:

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

const matchSessionConnectOptions: MatchSessionConnectOptions = { handshakeTimeoutMs: 10_000 }

console.log(matchSessionConnectOptions)

Example ​

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

const connectOptions: MatchSessionConnectOptions = {
  handshakeTimeoutMs: 10_000,
}

console.log(connectOptions.handshakeTimeoutMs)

See ​

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

Extended by ​

Properties ​

handshakeTimeoutMs? ​

Example:

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

const matchSessionConnectOptions: MatchSessionConnectOptions = { handshakeTimeoutMs: 10_000 }

const { handshakeTimeoutMs } = matchSessionConnectOptions

console.log(handshakeTimeoutMs)

optional handshakeTimeoutMs?: number

Defined in: packages/ts-sdk/src/match-session/session-state.ts:111

Milliseconds to wait for welcome plus first snapshot.

Released under the MIT License.