Hono
Hono is a lightweight web framework that works well with ActorCore across multiple deployment platforms. This guide explains how to integrate ActorCore with Hono on different platforms.
Mounting The ActorCore Router
When mounting the ActorCore router at a custom path, you must specify the same path in the router configuration using basePath
:
This ensures that WebSocket connections and other functionality work correctly when accessing your actors through the custom path.
Platform-Specific Examples
Each platform has specific requirements for integrating Hono with ActorCore.
Cloudflare Workers
Make sure to update your client connection URL to include the custom path:
For this to work with Cloudflare Workers, your wrangler.json
must include specific Durable Object and KV namespace bindings with the exact names expected by ActorCore:
Node.js
Make sure to update your client connection URL to include the custom path:
Bun
Make sure to update your client connection URL to include the custom path: