Skip to content

ServerHttpOptions beta ​

Interface of @v12-engine/engine/server

ts
export interface ServerHttpOptions

Where the addresses are, and who may read the numbers (GameServerOptions.http)

Members ​

games ​

ts
games?: string | false;

The address of the list of its games, for a page to find one (GameListing, JSON, readable from any page). /games when left out; false for none

health ​

ts
health?: string | false;

The address that says whether it is well. /health when left out; false for none

metrics ​

ts
metrics?: string | false;

The address of its numbers. /metrics when left out; false for none

metricsKey ​

ts
metricsKey?: string;

What reading the numbers takes (Authorization: Bearer <key>): they say how many play, and when. Anyone who can reach the address when left out: keep it behind the proxy then

ratings ​

ts
ratings?: string | false;

The address of the best of each mode (/ratings?mode=melee&n=10&player=<rated id>: the top and the player's own place, JSON, readable from any page), where the server keeps ratings. /ratings when left out; false for none