yuntian-deng commited on
Commit
395803c
·
1 Parent(s): 64aec73

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -147,7 +147,7 @@ async def websocket_endpoint(websocket: WebSocket):
147
  while True:
148
  try:
149
  # Receive user input with a timeout
150
- data = await asyncio.wait_for(websocket.receive_json(), timeout=30.0)
151
 
152
  if data.get("type") == "heartbeat":
153
  await websocket.send_json({"type": "heartbeat_response"})
 
147
  while True:
148
  try:
149
  # Receive user input with a timeout
150
+ data = await asyncio.wait_for(websocket.receive_json(), timeout=90.0)
151
 
152
  if data.get("type") == "heartbeat":
153
  await websocket.send_json({"type": "heartbeat_response"})