Skip to content

RemoteServerOptions

optional accountSecret?: string

signed-in players: the secret the host app signs account tickets with (new Tickets(secret) + accountTicket); without it everyone is a guest


optional address?: (req) => string

IncomingMessage

string


optional bigRooms?: BigRoomPlugin

Big rooms (a game with multiplayer.aoi): the fan-out module for them. Without one such a game is refused.


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

string

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


optional jwt?: JwtVerifier

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


optional limits?: Partial<Limits>


optional loopWindowMs?: number | false

Event-loop delay checks for the hub’s overload switch (see LoopMonitor in tickcli-js/node): the window in ms (default 10 s), or false.


optional onSnapshot?: (snap) => void | Promise<void>

close() hands the live rooms to this (write them somewhere; the next process passes them to hub.importRooms): a restart keeps matches

RoomsSnapshot

void | Promise<void>


optional saves?: string | SavePort

a folder for saved profiles and worlds, or your own SavePort


optional secret?: string

signs public player ids; keep it stable so ids stay the same across restarts (default: random per process)


optional trustProxy?: boolean

behind a proxy on a private network: players’ addresses from X-Forwarded-For (see clientAddress in tickcli-js/node)