Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-websockets/websockets
/ hello
Function
hello
example/asyncio/hello.py:9–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
8
9
async
def
hello():
10
async
with
connect(
"ws://localhost:8765"
)
as
websocket:
11
await websocket.send(
"Hello world!"
)
12
message = await websocket.recv()
13
print(message)
14
15
16
if
__name__ ==
"__main__"
:
Callers
1
hello.py
File · 0.70
Calls
3
connect
Function · 0.90
send
Method · 0.45
recv
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…