MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / #toError

Method #toError

node/src/transport.ts:237–240  ·  view source on GitHub ↗
(env: Envelope)

Source from the content-addressed store, hash-verified

235 async *envelopes() {
236 if (started) throw new Error("an AskStream can only be consumed once");
237 started = true;
238 await transport.#ensureStarted();
239 request.id = transport.#nextId++;
240 request.kind = Envelope_Kind.REQUEST;
241 const queue = new FrameQueue();
242 transport.#pending.set(request.id, { kind: "stream", queue });
243 try {

Callers 1

#dispatchMethod · 0.95

Calls 1

mapCoreErrorFunction · 0.90

Tested by

no test coverage detected