MCPcopy
hub / github.com/claude-code-best/claude-code / emitLine

Function emitLine

src/utils/ndjsonFramer.ts:56–63  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

54 }
55
56 const emitLine = (line: string): void => {
57 if (!line.trim()) return
58 try {
59 onMessage(parse(line))
60 } catch (error) {
61 rejectInvalidFrame(error)
62 }
63 }
64
65 socket.on('data', (chunk: Buffer) => {
66 let start = 0

Callers 1

attachNdjsonFramerFunction · 0.85

Calls 3

parseFunction · 0.85
rejectInvalidFrameFunction · 0.85
onMessageFunction · 0.50

Tested by

no test coverage detected