Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / LobbySpectatorView

Interface: LobbySpectatorView ​

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

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

console.log(lobbySpectatorView)

Properties ​

authenticated ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { authenticated } = lobbySpectatorView

console.log(authenticated)

authenticated: boolean

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

Whether this spectator joined from an authenticated app session.


avatarUrl? ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { avatarUrl } = lobbySpectatorView

console.log(avatarUrl)

optional avatarUrl?: string | null

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

Public avatar image URL supplied by this spectator, if any.


connected ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { connected } = lobbySpectatorView

console.log(connected)

connected: boolean

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


joinedAtMs ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { joinedAtMs } = lobbySpectatorView

console.log(joinedAtMs)

joinedAtMs: number

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


name ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { name } = lobbySpectatorView

console.log(name)

name: string

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


profileUrl? ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { profileUrl } = lobbySpectatorView

console.log(profileUrl)

optional profileUrl?: string | null

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

Public profile page URL supplied by this spectator, if any.


spectatorId ​

Example:

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

const lobbySpectatorView: LobbySpectatorView = {
  "spectatorId": 'example',
  "name": 'example',
  "authenticated": false,
  "connected": false,
  "joinedAtMs": 0,
}

const { spectatorId } = lobbySpectatorView

console.log(spectatorId)

spectatorId: string

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

Released under the MIT License.