Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
118
async
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
124
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