Fork from cruhl/cloudflare-trpc-subscriptions-example.
This is an example of using Hono and TRPC on Cloudflare Durable Objects using the Websockets Hibernation API.
I tried to simplify the code, and make it "just run" with TRPC v11.
The changes were done mostly by Gemini. There is still a lot of things that could be simplified, but I'm publishing it as it currently is to help others.
-
npm install -
npm run cf-typegenafter each change inwrangler.jsonc -
Ctrl+Shift+P ->
typescript.restartTsServer- Restart TypeScript Server if necessary -
npm run devto do a local test.