Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-websockets/websockets
/ hello
Function
hello
example/asyncio/server.py:9–16 ·
view source on GitHub ↗
(websocket)
Source
from the content-addressed store, hash-verified
7
8
9
async
def
hello(websocket):
10
name = await websocket.recv()
11
print(f
"<<< {name}"
)
12
13
greeting = f
"Hello {name}!"
14
15
await websocket.send(greeting)
16
print(f
">>> {greeting}"
)
17
18
19
async
def
main():
Callers
nothing calls this directly
Calls
2
recv
Method · 0.45
send
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…