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

Function websocket_params

tests/test_routing.py:114–117  ·  tests/test_routing.py::websocket_params
(session: WebSocket)

Source from the content-addressed store, hash-verified

112
113
114async def websocket_params(session: WebSocket) -> None:
115 await session.accept()
116 await session.send_text(fclass="st">"Hello, {session.path_params[&class="cm">#x27;room']}!")
117 await session.close()
118
119
120app = Router(

Callers

nothing calls this directly

Calls 3

acceptMethod · 0.80
send_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected