Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/starlette
/ websocket_endpoint
Function
websocket_endpoint
tests/middleware/test_base.py:78–81 · tests/middleware/test_base.py::websocket_endpoint
(session: WebSocket)
Source
from the content-addressed store, hash-verified
76
77
78
async
def
websocket_endpoint(session: WebSocket) -> None:
79
await session.accept()
80
await session.send_text(
class
="st">"Hello, world!")
81
await session.close()
82
83
84
app = Starlette(
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