skyview/assets/static/js/modules
Ole-Morten Duesund 6414ea72f1 Add active WebSocket client tracking and display
Track and display the number of active WebSocket connections viewing the
aircraft tracker. Features:

Backend:
- Add getActiveClientCount() method for thread-safe client counting
- Include active_clients count in all statistics responses
- Integrate with existing stats API endpoints

Frontend:
- Display "X viewer(s)" in header stats with proper plural/singular grammar
- Add "Active Viewers" card to Statistics view
- Real-time updates as clients connect/disconnect
- Fallback to 1 when stats not yet available

This adds a social element showing "Now being watched by X users" style
information prominently in the interface.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 21:56:16 +02:00
..
aircraft-manager.js Add separate color and legend entry for High Vortex Large aircraft 2025-08-24 20:28:27 +02:00
map-manager.js Default range rings to enabled 2025-08-24 21:09:33 +02:00
ui-manager.js Add active WebSocket client tracking and display 2025-08-24 21:56:16 +02:00
websocket.js Clean up excessive console logging and remove duplicate app files 2025-08-24 14:55:54 +02:00