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

Function connectToPipe

src/utils/pipeTransport.ts:519–528  ·  view source on GitHub ↗
(
  targetName: string,
  senderName?: string,
  timeoutMs?: number,
  tcpEndpoint?: TcpEndpoint,
)

Source from the content-addressed store, hash-verified

517}
518
519export async function connectToPipe(
520 targetName: string,
521 senderName?: string,
522 timeoutMs?: number,
523 tcpEndpoint?: TcpEndpoint,
524): Promise<PipeClient> {
525 const client = new PipeClient(targetName, senderName, tcpEndpoint)
526 await client.connect(timeoutMs)
527 return client
528}
529
530/**
531 * List all registered pipe names (fast — file scan only, no network probe).

Callers 1

callFunction · 0.85

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected