(env: Envelope)
| 46 | (t as unknown as { __fromCore: PassThrough }).__fromCore = fromCore; |
| 47 | |
| 48 | const feed = (env: Envelope) => { |
| 49 | fromCore.write(sizeDelimitedEncode(EnvelopeSchema, env)); |
| 50 | }; |
| 51 | // crash: EOF the core->client stream → the read loop ends → all pending fail. |
| 52 | const crash = () => { |
| 53 | fromCore.end(); |
no test coverage detected