INNER CODE UNIT · Python
notifications_websocket
SHAdd0WTAka/Zen-Ai-Pentest · api/main.py:806
async def notifications_websocket(websocket: WebSocket):
"""WebSocket for global notifications"""
await ws_manager.connect(websocket, "global")
try:
while True:
_ = await websocket.receive_text()
except WebSocketDisconnect:
ws_manager.disconnect(websocket, "global")
# ============================================================================
# HEALTH & INFO - Root Level Endpoints for Docker/Kubernetes
# ============================================================================
_API_START_TIME = time.time()
_API_VERSION = "3.0.0"