fix: 🐛 client sends ping to keep websocket connection alive

This commit is contained in:
2026-05-14 11:56:33 +00:00
parent 20db4742a7
commit 90103f79c8
2 changed files with 18 additions and 0 deletions
+3
View File
@@ -1290,6 +1290,9 @@ def ws_terminal():
height=int(o.get("rows", 40)),
)
return True
elif o.get("type") == "ping":
# Ping message to keep connection alive, ignore without sending to channel
return True
except (json.JSONDecodeError, TypeError, ValueError):
pass
channel.send(msg.encode("utf-8"))