Variables
Const canStartSession
canStartSession: boolean
Const hostTime
hostTime: number
Const isClient
isClient: boolean
Const isHost
isHost: boolean
Const isMultiplayer
isMultiplayer: boolean
Const joinLink
joinLink: string
Const sessionId
sessionId: string
Functions
onPlayerJoined
Parameters
listener: ((t: Player) => void)
onPlayerLeft
Parameters
listener: ((t: Player) => void)
playerById
- playerById(id: string): Player
startSession
- startSession(): Promise<"connected" | "invalid_session" | "rejected_by_host">
Returns Promise<"connected" | "invalid_session" | "rejected_by_host">