RemoteServerOptions
Properties
Section titled “Properties”accountSecret?
Section titled “accountSecret?”
optionalaccountSecret?:string
signed-in players: the secret the host app signs account tickets with (new Tickets(secret) + accountTicket); without it everyone is a guest
address?
Section titled “address?”
optionaladdress?: (req) =>string
Parameters
Section titled “Parameters”IncomingMessage
Returns
Section titled “Returns”string
bigRooms?
Section titled “bigRooms?”
optionalbigRooms?:BigRoomPlugin
Big rooms (a game with multiplayer.aoi): the fan-out module for them. Without one such a game is refused.
deployment
Section titled “deployment”deployment: (
id) =>Deployment|Promise<Deployment|null|undefined> |null|undefined
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Deployment | Promise<Deployment | null | undefined> | null | undefined
optionaljwt?:JwtVerifier
checks provider JWTs for deployments with auth (default: a new JwtVerifier)
limits?
Section titled “limits?”
optionallimits?:Partial<Limits>
loopWindowMs?
Section titled “loopWindowMs?”
optionalloopWindowMs?: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.
onSnapshot?
Section titled “onSnapshot?”
optionalonSnapshot?: (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
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void | Promise<void>
saves?
Section titled “saves?”
optionalsaves?:string|SavePort
a folder for saved profiles and worlds, or your own SavePort
secret?
Section titled “secret?”
optionalsecret?:string
signs public player ids; keep it stable so ids stay the same across restarts (default: random per process)
trustProxy?
Section titled “trustProxy?”
optionaltrustProxy?:boolean
behind a proxy on a private network: players’ addresses from X-Forwarded-For (see clientAddress in tickcli-js/node)