MCPcopy
hub / github.com/faif/python-patterns / subscribe

Method subscribe

patterns/behavioral/publish_subscribe.py:44–45  ·  view source on GitHub ↗
(self, msg: str)

Source from the content-addressed store, hash-verified

42 self.provider = msg_center
43
44 def subscribe(self, msg: str) -> None:
45 self.provider.subscribe(msg, self)
46
47 def unsubscribe(self, msg: str) -> None:
48 self.provider.unsubscribe(msg, self)

Calls 1

subscribeMethod · 0.45