WebSocket RPC from browser to worker to Durable Objects
A reference app showing how capnweb can route all communication over a single WebSocket — including TanStack Start server functions, direct RPC methods, and multiplexed Durable Object connections with hibernation support.
TanStack Start createServerFn calls are serialized as Request objects and sent over the WebSocket via CoreRpcRoot.fetch().
Methods like rollDice() and banner() run directly on the worker. No HTTP round-trip, no TanStack Start overhead.
Worker opens capnweb sessions to DOs over hibernating WebSockets. Child capability stubs are proxied to the browser automatically.