MCPcopy Index your code
hub / github.com/python-websockets/websockets / publish

Method publish

experiments/broadcast/server.py:33–36  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

31 self.waiter = asyncio.get_running_loop().create_future()
32
33 def publish(self, value):
34 waiter = self.waiter
35 self.waiter = asyncio.get_running_loop().create_future()
36 waiter.set_result((value, self.waiter))
37
38 async def subscribe(self):
39 waiter = self.waiter

Callers 2

broadcast_messagesFunction · 0.95
publish_eventFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected