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

Method onClose

src/mcp/transport.ts:356–358  ·  view source on GitHub ↗

* Register a callback fired exactly once when the socket closes (from either * side). Used by the daemon to decrement its connected-clients refcount.

(handler: () => void)

Source from the content-addressed store, hash-verified

354 * side). Used by the daemon to decrement its connected-clients refcount.
355 */
356 onClose(handler: () => void): void {
357 this.closeHandlers.push(handler);
358 }
359
360 start(handler: MessageHandler): void {
361 this.messageHandler = handler;

Callers 2

handleConnectionMethod · 0.95
onStreamEndMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected