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

Function close

src/shared/protocol.ts:942–944  ·  view source on GitHub ↗

* Closes the connection.

()

Source from the content-addressed store, hash-verified

940 * Closes the connection.
941 */
942 async close(): Promise<void> {
943 await this._transport?.close();
944 }
945
946 /**
947 * A method to check if a capability is supported by the remote side, for the given method to be called.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…