Testing WebSockets¶
You can use the same TestClient to test WebSockets.
For this, you use the TestClient in a with statement, connecting to the WebSocket:
/// note
For more details, check Starlette’s documentation for testing WebSockets.
///