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

Function getMessageHandler

src/utils/__tests__/lanBeacon.test.ts:56–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54type MockCall = [string, ...unknown[]]
55
56function getMessageHandler():
57 | ((msg: Buffer, rinfo: { address: string; port: number }) => void)
58 | undefined {
59 const calls = mockSocket.on.mock.calls as unknown as MockCall[]
60 const call = calls.find(c => c[0] === 'message')
61 return call?.[1] as
62 | ((msg: Buffer, rinfo: { address: string; port: number }) => void)
63 | undefined
64}
65
66describe('LanBeacon', () => {
67 let beacon: InstanceType<typeof LanBeacon>

Callers 1

lanBeacon.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected