MCPcopy Create free account
hub / github.com/Tong89/smartNode / __init__

Method __init__

backend/stream.py:29–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 """In-process fan-out message bus for SSE subscribers."""
28
29 def __init__(self) -> None:
30 self._lock = threading.Lock()
31 self._subscribers: list[queue.Queue] = []
32
33 def subscribe(self) -> queue.Queue:
34 """Register a new subscriber and return its dedicated queue."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected