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

Function websocket_endpoint

tests/middleware/test_base.py:78–81  ·  tests/middleware/test_base.py::websocket_endpoint
(session: WebSocket)

Source from the content-addressed store, hash-verified

76
77
78async def websocket_endpoint(session: WebSocket) -> None:
79 await session.accept()
80 await session.send_text(class="st">"Hello, world!")
81 await session.close()
82
83
84app = Starlette(

Callers

nothing calls this directly

Calls 3

acceptMethod · 0.80
send_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected