Basic Worker
Passing D1, KV, R2 as context
Cloudflare bindings (D1 databases, KV namespaces, R2 buckets) are available in theenv object. Pass them through the oRPC context:
Durable Objects with EventPublisher
For pub/sub patterns (e.g., broadcasting to WebSocket connections), use EventPublisher inside a Durable Object:
