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

Function sendMessage

__tests__/daemon-pid-reuse.test.ts:89–91  ·  view source on GitHub ↗
(child: ChildProcessWithoutNullStreams, msg: unknown)

Source from the content-addressed store, hash-verified

87}
88
89function sendMessage(child: ChildProcessWithoutNullStreams, msg: unknown): void {
90 try { child.stdin.write(JSON.stringify(msg) + '\n'); } catch { /* child may be gone */ }
91}
92
93function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void {
94 sendMessage(child, {

Callers 1

sendInitializeFunction · 0.70

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected