MCPcopy Index your code
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 #err?: Error;
58
59 push(env: Envelope): void {
60 if (this.#wait) {
61 const w = this.#wait;
62 this.#wait = undefined;
63 w({ value: env, done: false });
64 } else {
65 this.#q.push(env);
66 }
67 }
68
69 end(): void {
70 this.#done = true;

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected