Skip to content

Commit 0163dda

Browse files
502E532Epgjones
authored andcommitted
doc: Fix example code in documentation of app.add_websocket
1 parent dbd57d1 commit 0163dda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/quart/app.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def add_websocket(
646646
def websocket_route():
647647
...
648648
649-
app.add_websocket('/', websocket_route)
649+
app.add_websocket('/', view_func=websocket_route)
650650
651651
Arguments:
652652
rule: The path to route on, should start with a ``/``.

0 commit comments

Comments
 (0)