MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / send_message

Function send_message

python/examples/ws.py:7–11  ·  view source on GitHub ↗
(ws)

Source from the content-addressed store, hash-verified

5
6
7async def send_message(ws):
8 for i in range(20):
9 print(f"Sending: Message {i + 1}")
10 await ws.send(Message.from_text(f"Message {i + 1}"))
11 await asyncio.sleep(0.1)
12
13
14async def receive_message(ws):

Callers 1

mainFunction · 0.70

Calls 2

from_textMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected