MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stop

Method stop

src/mcp/transport.ts:396–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394 }
395
396 stop(): void {
397 if (this.stopped) return;
398 this.stopped = true;
399 this.rejectPending('Transport stopped');
400 if (!this.socket.destroyed) {
401 this.socket.end();
402 this.socket.destroy();
403 }
404 }
405
406 /**
407 * Write a one-shot line directly to the socket (no JSON-RPC framing applied

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected