MCPcopy Create free account
hub / github.com/middleapi/orpc / toEventStream

Function toEventStream

packages/standard-server-node/src/event-iterator.ts:22–27  ·  view source on GitHub ↗
(
  iterator: AsyncIterator<unknown | void, unknown | void, void>,
  options: ToEventStreamOptions = {},
)

Source from the content-addressed store, hash-verified

20export interface ToEventStreamOptions extends BaseToEventStreamOptions {}
21
22export function toEventStream(
23 iterator: AsyncIterator<unknown | void, unknown | void, void>,
24 options: ToEventStreamOptions = {},
25): Readable {
26 return Readable.fromWeb(baseToEventStream(iterator, options))
27}

Callers 2

toNodeHttpBodyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected