1
0
mirror of https://github.com/etesync/server synced 2024-12-28 02:08:08 +00:00

Subscriptions: allow subscribing without setting an stoken.

This commit is contained in:
Tom Hacohen 2021-01-28 18:10:12 +02:00
parent 8485806046
commit b33a3c882e

View File

@ -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),
):