MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / finish

Function finish

src/utils/udsClient.ts:232–242  ·  view source on GitHub ↗
(error?: Error)

Source from the content-addressed store, hash-verified

230 let settled = false
231 let conn: ReturnType<typeof createConnection>
232 const finish = (error?: Error): void => {
233 if (settled) return
234 settled = true
235 if (error) {
236 conn.destroy(error)
237 reject(error)
238 } else {
239 conn.end()
240 resolve()
241 }
242 }
243
244 conn = createConnection(target.socketPath, () => {
245 udsMsg.meta = { ...udsMsg.meta, authToken }

Callers 1

sendToUdsSocketFunction · 0.70

Calls 3

resolveFunction · 0.70
destroyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected