MCPcopy
hub / github.com/cloudflare/capnweb / #receivedError

Method #receivedError

src/websocket.ts:135–144  ·  view source on GitHub ↗
(reason: any)

Source from the content-addressed store, hash-verified

133 }
134
135 #receivedError(reason: any) {
136 if (!this.#error) {
137 this.#error = reason;
138 if (this.#receiveRejecter) {
139 this.#receiveRejecter(reason);
140 this.#receiveResolver = undefined;
141 this.#receiveRejecter = undefined;
142 }
143 }
144 }
145}
146
147// This class is generic, so it can't `implements RpcTransport` (that would require every `T` to

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected