(baseUrl: string)
| 84 | // --- HTTP Client Factory --- |
| 85 | |
| 86 | function createHttpClient(baseUrl: string): RouterClient<AppRouter> { |
| 87 | const link = new HTTPRPCLink({ |
| 88 | url: `${baseUrl}/orpc`, |
| 89 | }); |
| 90 | // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion -- needed for tsgo typecheck |
| 91 | return createORPCClient(link) as RouterClient<AppRouter>; |
| 92 | } |
| 93 | |
| 94 | // --- WebSocket Client Factory --- |
| 95 |