Skip to content

shoehive/client

shoehive/client: the framework-agnostic TypeScript client. Isomorphic: no Node built-ins.

import { createClient } from 'shoehive/client';
import type { ticTacToe } from './games/tic-tac-toe'; // type-only: no server code bundled
const client = createClient<[typeof ticTacToe]>({ url: 'ws://localhost:3000/shoehive' });
const table = await client.createAndJoin('tic-tac-toe');
await table.act('place', { cell: 4 });

Re-exports isShoehiveError


Re-exports LobbyDocument


Re-exports LobbyFilter


Re-exports ShoehiveError


Re-exports TableDocument


Re-exports Welcome