diff --git a/backend/routers/realtime.py b/backend/routers/realtime.py index af6f63d..9202951 100644 --- a/backend/routers/realtime.py +++ b/backend/routers/realtime.py @@ -49,7 +49,7 @@ async def api_events(current_user=Depends(require_auth)): try: msg = await asyncio.wait_for(queue.get(), timeout=30.0) yield f"event: {msg['event']}\ndata: {msg['data']}\n\n" - except asyncio.TimeoutError: + except TimeoutError: # Keepalive comment yield ": keepalive\n\n" except asyncio.CancelledError: