From b33a3c882ee12e665f9ddfebbfa515315543f532 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 28 Jan 2021 18:10:12 +0200 Subject: [PATCH] Subscriptions: allow subscribing without setting an stoken. --- etebase_fastapi/routers/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etebase_fastapi/routers/websocket.py b/etebase_fastapi/routers/websocket.py index ad3331b..3fc535f 100644 --- a/etebase_fastapi/routers/websocket.py +++ b/etebase_fastapi/routers/websocket.py @@ -74,7 +74,7 @@ def get_websocket_user(websocket: WebSocket, ticket_model: t.Optional[TicketInne @websocket_router.websocket("/{ticket}/") async def websocket_endpoint( websocket: WebSocket, - stoken: t.Optional[str], + stoken: t.Optional[str] = None, user: t.Optional[UserType] = Depends(get_websocket_user), ticket_model: TicketInner = Depends(load_websocket_ticket), ):