Document WebSocket support
Merged
KL
3mo ago+196+196+012345678901234567890123456789-0-0-0123456789
Documents the native WebSocket support added in #1042, following the same structure as the SSE docs (#1050):
- New
docs/websockets.mdguide covering opening sessions, sending/receiving messages, subprotocols, keepalive pings, configuration, error handling, and testing ASGI applications withASGIWebSocketTransport. WebSocketsentry in the nav, afterServer-Sent Events.- API reference: top-level
websocket()helper,websocketmember onClient/AsyncClient, andWebSocketSession/AsyncWebSocketSessionsections. wsprotolisted in the optional dependencies on the index page.
Docs build passes with no new warnings.
AI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.