| 30 | |
| 31 | /** What `call_stream` registers a stream with: a transport-driven frame source. */ |
| 32 | export 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 |
no outgoing calls
no test coverage detected