laurynas
laurynas
CDCloudflare Developers
Created by kingmesal on 10/17/2024 in #general-discussions
Hono Client
I think your best shot is chaining the route registration on a single app object (inside of a module) and then extracting the type. So:
// ...

const routes = app
.get(// route)
.post(//route)
.post(//route)

const client = hc<typeof routes>("<base_url>")
// client should have RPC-like capabilities here
// ...

const routes = app
.get(// route)
.post(//route)
.post(//route)

const client = hc<typeof routes>("<base_url>")
// client should have RPC-like capabilities here
1 replies
CDCloudflare Developers
Created by naporitan on 4/12/2024 in #workers-help
Using WebSockets with PRC in Cloudflare Worker
running into the same issue here
2 replies