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

Function cleanup

src/mcp/proxy.ts:449–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447 return new Promise((resolve, reject) => {
448 let buffer = '';
449 const cleanup = () => {
450 socket.removeListener('data', onData);
451 socket.removeListener('error', onError);
452 socket.removeListener('close', onClose);
453 clearTimeout(timer);
454 };
455 const onData = (chunk: string | Buffer) => {
456 buffer += typeof chunk === 'string' ? chunk : chunk.toString('utf8');
457 const idx = buffer.indexOf('\n');

Callers 6

onDataFunction · 0.85
onErrorFunction · 0.85
onCloseFunction · 0.85
readHelloLineFunction · 0.85
SessionClass · 0.85
freeFnFunction · 0.85

Calls

no outgoing calls

Tested by 1

freeFnFunction · 0.68