MCPcopy
hub / github.com/encode/starlette / ws_helloworld

Function ws_helloworld

tests/test_routing.py:600–603  ·  tests/test_routing.py::ws_helloworld
(websocket: WebSocket)

Source from the content-addressed store, hash-verified

598
599
600async def ws_helloworld(websocket: WebSocket) -> None:
601 await websocket.accept()
602 await websocket.send_text(class="st">"Hello, world!")
603 await websocket.close()
604
605
606def test_standalone_ws_route_matches(

Callers

nothing calls this directly

Calls 3

acceptMethod · 0.80
send_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected