Deployment
Properties
Section titled “Properties”accounts?
Section titled “accounts?”
optionalaccounts?:string
signed-in players (with RemoteOptions.accounts): an https URL (http only for localhost) on the game’s own site that answers a signed-in visitor (its cookie) with {ticket} from accountTicket(); the boot script asks it before each connect, and a visitor without an account plays as a guest
optionalauth?:JwtAuth
signed-in players from the author’s auth provider (Clerk, Auth0, Firebase, Supabase, any OIDC issuer): the page’s window.tickcliAuth() returns the provider’s JWT, checked here against the provider’s public keys; the player is its sub. No server code on the author’s side.
optionalcaps?:object
joinsPerMinute?
Section titled “joinsPerMinute?”
optionaljoinsPerMinute?:number
joins a minute across the deployment, reconnects included (on top of the hub’s per-address joinsPerMinute); over it: 1013 busy, the page tries again. Leave room for a restart: every connected player joins again within a few seconds.
kbPerSec?
Section titled “kbPerSec?”
optionalkbPerSec?:number
data going out to its players, KB a second: over it, new sockets wait (busy) and all its open rooms send less often (half, down to an eighth) until it is back under 80% of it, so one busy deployment cannot take the server’s whole uplink
players?
Section titled “players?”
optionalplayers?:number
connected sockets at once
rooms?
Section titled “rooms?”
optionalrooms?:number
open rooms at once (default: the hub’s maxRoomsPerScope)
id:
string
public id, as in the page’s script tag: letters, digits, “_” and “-”, 3 to 64
origins
Section titled “origins”origins:
string[]
sites allowed to use it: “https://mygame.example”, “https://mygame.example:8443”, one level of wildcard subdomain (“https://.mygame.example”) or any port (“:”). http works only for localhost, 127.0.0.1 and [::1] (“http://localhost:*” to test from a laptop); an http entry for any other host never matches.
revoked?
Section titled “revoked?”
optionalrevoked?:boolean
turned off: new sockets are refused (call revoke() to close its open rooms too)