Skip to main content
Use the client already created in your frontend:
Tableverse loads your frontend inside its game host. The client receives the session and player identity from that host. It exchanges views, commands, discoveries, and events through the connection Tableverse provides.

Keep one connection setup

The same line connects your local preview and published game:
Your rendering code can use TableverseClient<Game> without managing connection modes, platform URLs, access tokens, room IDs, or player IDs.

Handle connection errors

Possible reasons are not_ready, connection_lost, server_error, and closed.
Do not hard-code your own player identity or send commands directly to a platform endpoint. The host owns session identity and transport.
Call client.dispose() when your application permanently unmounts the game. This closes the connection and rejects pending requests.

Views and subscriptions

Keep your interface synchronized with the host.