Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-websockets/websockets
/ hello
Function
hello
example/sync/hello.py:8–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
7
8
def
hello():
9
with
connect(
"ws://localhost:8765"
)
as
websocket:
10
websocket.send(
"Hello world!"
)
11
message = websocket.recv()
12
print(message)
13
14
15
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…