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

Function closeWithError

src/utils/udsMessaging.ts:469–474  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

467 let authenticated = false
468 let closing = false
469 const closeWithError = (data: string): void => {
470 if (closing || socket.destroyed) return
471 closing = true
472 socket.pause()
473 writeSocketErrorAndDestroy(socket, data)
474 }
475 const authTimer = setTimeout(() => {
476 if (authenticated || socket.destroyed) return
477 logForDebugging('[udsMessaging] closing unauthenticated idle client')

Callers 1

startUdsMessagingFunction · 0.85

Calls 2

pauseMethod · 0.80

Tested by

no test coverage detected