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

Function websocket_endpoint

tests/test_routing.py:108–111  ·  view source on GitHub ↗
(session: WebSocket)

Source from the content-addressed store, hash-verified

106
107
108async def websocket_endpoint(session: WebSocket) -> None:
109 await session.accept()
110 await session.send_text("Hello, world!")
111 await session.close()
112
113
114async def websocket_params(session: WebSocket) -> None:

Callers

nothing calls this directly

Calls 3

acceptMethod · 0.80
send_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected