Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / LobbyClosedPayload

Interface: LobbyClosedPayload ​

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

Payload of the lobby closed socket message.

The server sends it once, then closes the socket with close code 4000 and reason lobby_closed. The stored lobby credentials stop working.

Example:

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

const lobbyClosedPayload: LobbyClosedPayload = {
  "reason": "hostLeft",
}

console.log(lobbyClosedPayload)

Properties ​

reason ​

Example:

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

const lobbyClosedPayload: LobbyClosedPayload = {
  "reason": "hostLeft",
}

const { reason } = lobbyClosedPayload

console.log(reason)

reason: LobbyClosedReason

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

Machine-readable closure cause for localized client copy.

Released under the MIT License.