onlineScene beta
Function of @v12-engine/client/app
ts
export declare function onlineScene(options?: OnlineSceneOptions): GameScene<OnlineArgs> & {
lobby: LobbyController;
};A scene of a game on a server: its lobby, seen while it waits for the players (lobby, the client's LobbyScreen or the game's own, on a LobbyController), then the game. A dropped connection is tried again, back in the same seat, and the HUD says so (client.connection, the part connection). The server's address is url (OnlineArgs), or ?server= in the page's address, or the scene's url, or port 8787 of the machine the page came from; name the name to join by (the one kept otherwise), and ticket (or ?ticket=) what the server's seat lets players in by