yuntian-deng commited on
Commit
8a73e0c
·
1 Parent(s): f831ea6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -161,7 +161,9 @@ async def websocket_endpoint(websocket: WebSocket):
161
  while True:
162
  try:
163
  # Receive user input with a timeout
164
- data = await asyncio.wait_for(websocket.receive_json(), timeout=90000.0)
 
 
165
 
166
  if data.get("type") == "heartbeat":
167
  await websocket.send_json({"type": "heartbeat_response"})
 
161
  while True:
162
  try:
163
  # Receive user input with a timeout
164
+ #data = await asyncio.wait_for(websocket.receive_json(), timeout=90000.0)
165
+ data = await websocket.receive_json()
166
+
167
 
168
  if data.get("type") == "heartbeat":
169
  await websocket.send_json({"type": "heartbeat_response"})