Chris4K commited on
Commit
eaa1c15
·
verified ·
1 Parent(s): c1cae92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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: