Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/starlette
/ ws_helloworld
Function
ws_helloworld
tests/test_routing.py:600–603 ·
view source on GitHub ↗
(websocket: WebSocket)
Source
from the content-addressed store, hash-verified
598
599
600
async
def
ws_helloworld(websocket: WebSocket) -> None:
601
await websocket.accept()
602
await websocket.send_text(
"Hello, world!"
)
603
await websocket.close()
604
605
606
def
test_standalone_ws_route_matches(
Callers
nothing calls this directly
Calls
3
accept
Method · 0.80
send_text
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected