MCPcopy Index your code
hub / github.com/github/copilot-sdk / connectToServer

Method connectToServer

nodejs/src/client.ts:2397–2407  ·  view source on GitHub ↗

* Connect to the CLI server (via socket or stdio)

()

Source from the content-addressed store, hash-verified

2395 * Connect to the CLI server (via socket or stdio)
2396 */
2397 private async connectToServer(): Promise<void> {
2398 switch (this.connectionConfig.kind) {
2399 case "parent-process":
2400 return this.connectToParentProcessViaStdio();
2401 case "stdio":
2402 return this.connectToChildProcessViaStdio();
2403 case "tcp":
2404 case "uri":
2405 return this.connectViaTcp();
2406 }
2407 }
2408
2409 /**
2410 * Connect to child via stdio pipes

Callers 1

startMethod · 0.95

Calls 3

connectViaTcpMethod · 0.95

Tested by

no test coverage detected