Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/starlette
/ partial_ws_endpoint
Function
partial_ws_endpoint
tests/test_routing.py:57–60 ·
view source on GitHub ↗
(websocket: WebSocket)
Source
from the content-addressed store, hash-verified
55
56
57
async
def
partial_ws_endpoint(websocket: WebSocket) -> None:
58
await websocket.accept()
59
await websocket.send_json({
"url"
: str(websocket.url)})
60
await websocket.close()
61
62
63
class
PartialRoutes:
Callers
nothing calls this directly
Calls
3
accept
Method · 0.80
send_json
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected