@my-swu/simulator-client / LobbySpectatorView
Interface: LobbySpectatorView
Defined in: packages/ts-sdk/src/generated/types/common.ts:3818
Example:
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:
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:
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)
optionalavatarUrl?: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:
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:
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:
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:
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)
optionalprofileUrl?: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:
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
