MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / StreamSource

Interface StreamSource

node/src/streaming.ts:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31/** What `call_stream` registers a stream with: a transport-driven frame source. */
32export interface StreamSource {
33 /** Allocated correlation id (set once the stream is started). */
34 readonly id: number;
35 /** Async-iterate the raw envelopes for this stream (terminates on done). */
36 envelopes(): AsyncGenerator<Envelope>;
37 /** Write an ANSWER envelope on this stream's id. */
38 answer(env: Envelope): Promise<void>;
39}
40
41/**
42 * Stream-terminal `error` codes that surface as their typed exception (not the

Callers 3

pinMethod · 0.65
confirmMethod · 0.65

Implementers 1

Transportnode/src/transport.ts

Calls

no outgoing calls

Tested by

no test coverage detected