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

Method push

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

Source from the content-addressed store, hash-verified

57
58 fail(error: Error): void {
59 this.#error = error;
60 this.#done = true;
61 this.#wakeDone();
62 }
63
64 #wakeDone(): void {
65 if (this.#wait) {
66 const waiter = this.#wait;
67 this.#wait = undefined;
68 waiter({ value: undefined as never, done: true });
69 }
70 }

Callers 3

#dispatchMethod · 0.80
envelopesMethod · 0.80
transport.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected