Skip to content
oRPC
v2 (latest)
Esc
navigateopen⌘Jpreview
On this page

v1.6.0

Durable Event Iterator docs

Durable Event Iterator allows you to use Event Iterator by separating the streaming to a different service that provides durable event streams, automatic reconnections, recovery of missing events, and more.

[!NOTE] Only support Cloudflare Websocket Hibernation for now

  const onMessageProcedure = base.handler(({ context }) => {
    return new DurableEventIterator<ChatRoom>('some-room', {
      signingKey: 'secret-key', // Replace with your actual signing key
    })
  })

oRPC features now support tRPC docs

By converting a tRPC router to an oRPC router, you can utilize most oRPC features, including OpenAPI specification generation and request handling.

import {
  experimental_ORPCMeta as ORPCMeta,
  experimental_toORPCRouter as toORPCRouter
} from '@orpc/trpc'

export const t = initTRPC.context<Context>().meta<ORPCMeta>().create()

const orpcRouter = toORPCRouter(trpcRouter)

   🚨 Breaking Changes

[!NOTE] Only effect experimental features

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

Last updated on June 29, 2025

Was this page helpful?