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:96

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:98

Milliseconds to wait for welcome plus first snapshot.

Released under the MIT License.