Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -205,6 +205,8 @@ threading.Thread(target=ai_manager.modify_research_tasks, daemon=True).start()
|
|
205 |
async def websocket_endpoint(websocket: WebSocket):
|
206 |
"""WebSocket connection handler."""
|
207 |
await websocket.accept()
|
|
|
|
|
208 |
ai_manager.clients.add(websocket)
|
209 |
try:
|
210 |
while True:
|
|
|
205 |
async def websocket_endpoint(websocket: WebSocket):
|
206 |
"""WebSocket connection handler."""
|
207 |
await websocket.accept()
|
208 |
+
await websocket.send_json({"msg": "Hello WebSocket"})
|
209 |
+
|
210 |
ai_manager.clients.add(websocket)
|
211 |
try:
|
212 |
while True:
|