feat(websocket): add ping/pong mechanism to maintain connection

- Add proxy timeouts in nginx.conf to handle long connections
- Implement ping/pong handling in server.js WebSocket listener
- Refactor App.js to class component with lifecycle methods and ping interval for WebSocket keep-alive
This commit is contained in:
sebseb7
2025-09-02 08:45:18 +00:00
parent 9cfbe4c0f7
commit a8ca291555
3 changed files with 58 additions and 27 deletions

View File

@@ -21,4 +21,6 @@
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 86400;
proxy_send_timeout 86400;
}