MCPcopy Create free account
hub / github.com/github/copilot-sdk / createTcpServer

Function createTcpServer

nodejs/test/e2e/suspend.e2e.test.ts:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 const SHARED_TOKEN = "suspend-shared-test-token";
63
64 function createTcpServer(): CopilotClient {
65 const server = new CopilotClient({
66 workingDirectory: workDir,
67 env,
68 gitHubToken: DEFAULT_GITHUB_TOKEN,
69 connection: RuntimeConnection.forTcp({
70 path: process.env.COPILOT_CLI_PATH,
71 connectionToken: SHARED_TOKEN,
72 }),
73 });
74 onTestFinishedForceStop(server);
75 return server;
76 }
77
78 function createConnectingClient(cliUrl: string): CopilotClient {
79 const connectedClient = new CopilotClient({

Callers 1

Calls 1

onTestFinishedForceStopFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…