Spaces:
Runtime error
Runtime error
Commit
·
aec180f
1
Parent(s):
0688b7a
Update main.py
Browse files
main.py
CHANGED
@@ -158,7 +158,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
158 |
while True:
|
159 |
try:
|
160 |
# Receive user input with a timeout
|
161 |
-
data = await asyncio.wait_for(websocket.receive_json(), timeout=
|
162 |
|
163 |
if data.get("type") == "heartbeat":
|
164 |
await websocket.send_json({"type": "heartbeat_response"})
|
|
|
158 |
while True:
|
159 |
try:
|
160 |
# Receive user input with a timeout
|
161 |
+
data = await asyncio.wait_for(websocket.receive_json(), timeout=9000.0)
|
162 |
|
163 |
if data.get("type") == "heartbeat":
|
164 |
await websocket.send_json({"type": "heartbeat_response"})
|