Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
async
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
14
async
def
receive_message(ws):
Callers
1
main
Function · 0.70
Calls
2
from_text
Method · 0.80
send
Method · 0.45
Tested by
no test coverage detected