Skip to content

ServerSceneOptions beta ​

Interface of @v12-engine/client/app

ts
export interface ServerSceneOptions

What a seat at a server is asked for

Members ​

exit ​

ts
exit?: GameScene['exit'];

Where the HUD's way out of the game goes, as GameScene.exit takes it

game ​

ts
game: LoadedGame;

The game played at the server, whose rules and view the client uses

id ​

ts
id?: string;

The scene's id; a default for the game when left out

name ​

ts
name?: string;

What the scene is called. "the game on the server" when left out

url ​

ts
url?: string;

The server's address. When left out, /?server=ws://host:port in the page's address says it, else port 8787 of the machine the page came from (npm run server)