MCPcopy Create free account
hub / github.com/Effect-TS/effect / stop

Method stop

packages/platform/node-shared/src/internal/proxyProcess.ts:354–358  ·  view source on GitHub ↗

Stops a proxy process that has not been sent any command, or has stopped answering.

(cause: Error)

Source from the content-addressed store, hash-verified

352
353 /** Stops a proxy process that has not been sent any command, or has stopped answering. */
354 private stop(cause: Error): void {
355 // Its exit has not been seen, so its ID has not been reused
356 this.child?.kill("SIGKILL")
357 this.end(cause)
358 }
359
360 private send(message: unknown): void {
361 if (this.child?.connected !== true) return

Callers 15

retireMethod · 0.95
ProxyClass · 0.95
startTimerMethod · 0.95
stopFunction · 0.45
describeDnsServerFunction · 0.45
readResponseFunction · 0.45
BunSocket.test.tsFile · 0.45
BunHttpServer.tsFile · 0.45
Workflow.test.tsFile · 0.45

Calls 2

endMethod · 0.95
killMethod · 0.65

Tested by 1

readResponseFunction · 0.36