// Placeholder for the real Connect-web + FlatBuffers transport, wired in the edge // codegen task. Until then, selecting a non-mock mode surfaces a clear error instead // of failing silently. The mock (lib/mock) backs `pnpm start`. import type { GatewayClient } from './client'; import { GatewayError } from './client'; export function createTransport(_baseUrl: string): GatewayClient { const ni = (): never => { throw new GatewayError('unavailable', 'real transport not wired yet'); }; return { setToken: () => {}, authGuest: ni, authEmailRequest: ni, authEmailLogin: ni, profileGet: ni, gamesList: ni, lobbyEnqueue: ni, lobbyPoll: ni, gameState: ni, gameHistory: ni, submitPlay: ni, pass: ni, exchange: ni, resign: ni, hint: ni, evaluate: ni, checkWord: ni, complaint: ni, chatPost: ni, chatList: ni, nudge: ni, subscribe: ni, }; }