MCPcopy
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
57async 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
63class PartialRoutes:

Callers

nothing calls this directly

Calls 3

acceptMethod · 0.80
send_jsonMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected