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

Function writeSocketMessage

src/utils/udsMessaging.ts:352–355  ·  view source on GitHub ↗
(socket: Socket, message: UdsMessage)

Source from the content-addressed store, hash-verified

350}
351
352function writeSocketMessage(socket: Socket, message: UdsMessage): void {
353 if (socket.destroyed) return
354 socket.write(jsonStringify(message) + '\n')
355}
356
357function writeSocketMessageAndDestroy(
358 socket: Socket,

Callers 1

startUdsMessagingFunction · 0.85

Calls 2

jsonStringifyFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected