- Add connection timeout (5s) to detect silent failures - Log WebSocket close events with code and reason - Prevent infinite reconnection loops after max attempts - Clear connection timeout when WebSocket opens or closes - Show user-friendly error after max reconnection attempts This helps diagnose why WebSocket connections are failing and prevents the infinite reconnection loop issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| chat.css | ||
| chat.html | ||
| chat.js | ||
| projector.html | ||