skyview/internal
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
..
beast Clean up codebase and fix server host binding for IPv6 support 2025-08-24 18:36:14 +02:00
client Clean up codebase and fix server host binding for IPv6 support 2025-08-24 18:36:14 +02:00
icao Clean up codebase and fix server host binding for IPv6 support 2025-08-24 18:36:14 +02:00
merger Improve position validation logging and reduce spam 2025-08-24 20:39:57 +02:00
modes Remove arbitrary 600kt speed cap from Mode S decoder 2025-08-24 21:43:15 +02:00
server Add active WebSocket client tracking and display 2025-08-24 21:56:16 +02:00