BE portion of seamless clipboard transfer in browser stream (#3788)

This commit is contained in:
Jonathan Dobson
2025-10-22 11:57:50 -04:00
committed by GitHub
parent 24763b6a5a
commit b52e88bd99
8 changed files with 445 additions and 97 deletions

View File

@@ -44,3 +44,18 @@ async def auth(apikey: str | None, token: str | None, websocket: WebSocket) -> s
return None
return organization_id
# NOTE(jdo:streaming-local-dev): use this instead of the above `auth`
async def _auth(apikey: str | None, token: str | None, websocket: WebSocket) -> str | None:
"""
Dummy auth for local testing.
"""
try:
await websocket.accept()
except ConnectionClosedOK:
LOG.info("WebSocket connection closed cleanly.")
return None
return "o_temp123"