MCPcopy Index your code
hub / github.com/codeaashu/claude-code / setReplBridgeHandle

Function setReplBridgeHandle

src/bridge/replBridgeHandle.ts:18–23  ·  view source on GitHub ↗
(h: ReplBridgeHandle | null)

Source from the content-addressed store, hash-verified

16let handle: ReplBridgeHandle | null = null
17
18export function setReplBridgeHandle(h: ReplBridgeHandle | null): void {
19 handle = h
20 // Publish (or clear) our bridge session ID in the session record so other
21 // local peers can dedup us out of their bridge list — local is preferred.
22 void updateSessionBridgeId(getSelfBridgeCompatId() ?? null).catch(() => {})
23}
24
25export function getReplBridgeHandle(): ReplBridgeHandle | null {
26 return handle

Callers 1

useReplBridgeFunction · 0.85

Calls 2

updateSessionBridgeIdFunction · 0.85
getSelfBridgeCompatIdFunction · 0.85

Tested by

no test coverage detected