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

Function close

nodejs/test/e2e/copilot_request_handler.e2e.test.ts:127–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 server: httpServer,
126 wsRequestCount: () => wsRequests,
127 async close() {
128 wss.clients.forEach((c) => c.terminate());
129 await new Promise<void>((resolve) => wss.close(() => resolve()));
130 await new Promise<void>((resolve) => httpServer.close(() => resolve()));
131 },
132 };
133}
134

Callers

nothing calls this directly

Calls 2

terminateMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…