MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / broadcast

Function broadcast

graph-ui/src/graph/edge-motion.ts:21–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19function subscribe(notify: () => void): () => void {
20 if (!subscribers.size) {
21 const broadcast = () => subscribers.forEach(listener => listener());
22 const query = typeof window.matchMedia === 'function' ? window.matchMedia('(prefers-reduced-motion: reduce)') : undefined;
23 window.addEventListener(CHANGE, broadcast); window.addEventListener('storage', broadcast);
24 document.addEventListener('visibilitychange', broadcast); query?.addEventListener('change', broadcast);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected