mirror of
https://github.com/fastapi/fastapi.git
synced 2026-07-12 07:57:18 -04:00
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
429 B
429 B
Probando WebSockets
Puedes usar el mismo TestClient para probar WebSockets.
Para esto, usas el TestClient en un statement with, conectándote al WebSocket:
{* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
/// note | Nota
Para más detalles, revisa la documentación de Starlette sobre probar WebSockets.
///