Skip to main content
Create your client with the function you use throughout your frontend:
Start tvk dev before loading the frontend:

Options

The first local connection initializes the in-memory session. Give it the roster and any setup input. The setupInput type is derived from the executor:
Restart tvk dev after changing the roster or setup input, or when you want a clean game.

Wait for the connection

Calls to execute, discover, or getAvailableCommands reject with a TransportError if the client is not ready.

Use a different port

Start the server with --port and pass the same base URL to the client:
Tableverse supplies the session URL, player identity, roster, seed, and setup input for published games. These options configure your local session.

Render state changes

Subscribe and update your interface.