Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/starlette
/ websocket_params
Function
websocket_params
tests/test_routing.py:114–117 ·
view source on GitHub ↗
(session: WebSocket)
Source
from the content-addressed store, hash-verified
112
113
114
async
def
websocket_params(session: WebSocket) -> None:
115
await session.accept()
116
await session.send_text(f
"Hello, {session.path_params['room']}!"
)
117
await session.close()
118
119
120
app = Router(
Callers
nothing calls this directly
Calls
3
accept
Method · 0.80
send_text
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected