MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getRpcClient

Function getRpcClient

packages/plugin/src/tui/data/context-db.ts:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38/** The live RPC client (for the WS notification socket's endpoint discovery).
39 * Null before init / after close. */
40export function getRpcClient(): MagicContextRpcClient | null {
41 return rpcClient;
42}
43
44/** Clean up the RPC client. */
45export function closeRpc(): void {

Callers 2

connectFunction · 0.90
watchSessionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected