MCPcopy Create free account
hub / github.com/Noumena-Network/code / onData

Function onData

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

Source from the content-addressed store, hash-verified

926 process.stdin.setEncoding('utf8');
927 let data = '';
928 const onData = (chunk: string) => {
929 data += chunk;
930 };
931 process.stdin.on('data', onData);
932 // If no data arrives in 3s, stop waiting and warn. Stdin is likely an
933 // 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