R

Ravina • 3.68K Points
Extraordinary

Q. Which method allows handling WebSockets in FastAPI?

  • (A) @app.websocket()
  • (B) @app.ws()
  • (C) @app.socket()
  • (D) @app.websocket_route()

Explanation by: Ravina
FastAPI provides the `@app.websocket()` decorator to handle WebSocket connections.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.