1
0
mirror of https://github.com/etesync/server synced 2024-11-25 18:28:46 +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}/") @websocket_router.websocket("/{ticket}/")
async def websocket_endpoint( async def websocket_endpoint(
websocket: WebSocket, websocket: WebSocket,
stoken: t.Optional[str], stoken: t.Optional[str] = None,
user: t.Optional[UserType] = Depends(get_websocket_user), user: t.Optional[UserType] = Depends(get_websocket_user),
ticket_model: TicketInner = Depends(load_websocket_ticket), ticket_model: TicketInner = Depends(load_websocket_ticket),
): ):