MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / error

Method error

examples/io/tcp/simplehttpget/main.js:71–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70 }
71 error() {
72 const target = this.target;
73 target.#onError?.();
74 target.#socket.close();
75 target.#socket = undefined;
76 }
77}
78
79new HTTPGet({

Callers 1

index.jsFile · 0.45

Calls 2

closeMethod · 0.65
#onErrorMethod · 0.45

Tested by

no test coverage detected