oRPC Client Event Iterator

Installation
SKILL.md

Event Iterator in oRPC Clients

An Event Iterator in oRPC behaves like an AsyncGenerator.

Basic Usage

const iterator = await client.streaming()

for await (const event of iterator) {
  console.log(event.message)
}

Stopping the Stream Manually

const controller = new AbortController()
const iterator = await client.streaming(undefined, { signal: controller.signal })
Related skills
Installs
First Seen