MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onData

Function onData

src/main.tsx:866–868  ·  view source on GitHub ↗
(chunk: string)

Source from the content-addressed store, hash-verified

864 process.stdin.setEncoding('utf8');
865 let data = '';
866 const onData = (chunk: string) => {
867 data += chunk;
868 };
869 process.stdin.on('data', onData);
870 // If no data arrives in 3s, stop waiting and warn. Stdin is likely an
871 // inherited pipe from a parent that isn't writing (subprocess spawned

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected