Skip to content

RemoteOptions

optional accounts?: Tickets<AccountClaims>

checks the tickets of signed-in players (made by accountTicket with the same secret): their seat is “u:”, not a guest


optional address?: (req) => string

the client address after your trusted-proxy rule (default: the socket’s address)

IncomingMessage

string


deployment: (id) => Deployment | Promise<Deployment | null | undefined> | null | undefined

look a deployment up by id (your table, a JSON file); null or undefined = no such deployment

string

Deployment | Promise<Deployment | null | undefined> | null | undefined


optional heartbeat?: Heartbeat


hub: RoomHub


optional jwt?: JwtVerifier

checks provider JWTs for deployments with auth (default: a new JwtVerifier)


optional path?: string

socket path (default “/room”)