oRPC Publisher
Installation
SKILL.md
Publisher
The Publisher helper enables listening to and publishing events to subscribers. Combined with Event Iterator, it allows you to build streaming responses with minimal effort.
Installation
npm install @orpc/experimental-publisher@latest
Basic Usage
import { MemoryPublisher } from '@orpc/experimental-publisher/memory'
const publisher = new MemoryPublisher<{
'something-updated': { id: string }
}>()