From d05942e4e6365029d606c9ad20819caf2d5fc595 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Tue, 19 Sep 2023 13:27:39 +0500 Subject: [PATCH] Fixed the `Using Websockets` doc --- docs/how_to_guides/websockets.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how_to_guides/websockets.rst b/docs/how_to_guides/websockets.rst index 233063a1..3092aa08 100644 --- a/docs/how_to_guides/websockets.rst +++ b/docs/how_to_guides/websockets.rst @@ -151,7 +151,7 @@ type of request (WebSocket upgrade or not). As so, async def http(): return "A HTTP request" - @app.route("/ws") + @app.websocket("/ws") async def ws(): ... # Use the WebSocket