MCPcopy Create free account
hub / github.com/encode/starlette / websocket_params

Function websocket_params

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

Source from the content-addressed store, hash-verified

116
117
118async def websocket_params(session: WebSocket) -> None:
119 await session.accept()
120 await session.send_text(f"Hello, {session.path_params['room']}!")
121 await session.close()
122
123
124app = Router(

Callers

nothing calls this directly

Calls 3

acceptMethod · 0.80
send_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected