debug: add WebSocket stability delay and enhanced checks

- Added 100ms delay before sending command to ensure WebSocket stability
- Added detailed WebSocket state logging (CONNECTING, OPEN, CLOSING, CLOSED)
- Added bufferedAmount check to wait for pending sends
- Wrapped ws.send() in try-catch for better error reporting
- Split terminal and ws existence checks for clearer debugging
This commit is contained in:
uroma
2026-01-19 19:16:03 +00:00
Unverified
parent a7d2f37219
commit 8730641efd
3 changed files with 36 additions and 9 deletions

Binary file not shown.