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

Function disconnect

nodejs/test/e2e/rpc_session_state_extras.e2e.test.ts:54–63  ·  view source on GitHub ↗
(session: CopilotSession | undefined)

Source from the content-addressed store, hash-verified

52 }
53
54 async function disconnect(session: CopilotSession | undefined): Promise<void> {
55 if (!session) {
56 return;
57 }
58 try {
59 await session.disconnect();
60 } catch {
61 // Best-effort cleanup.
62 }
63 }
64
65 it("should list models for session", { timeout: 120_000 }, async () => {
66 const token = "rpc-session-model-list-token";

Calls 1

disconnectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…