Skip to content

v1.3.2: Live connection counts and public API docs

Choose a tag to compare

@reloading01 reloading01 released this 10 Mar 22:09
· 187 commits to main since this release

Release date: March 9, 2026

Fixes /api/stats reporting zero active connections and adds public API documentation and a live certificate demo to the docs site.

/api/stats connection counts

ApiState previously owned unused ws_connections and sse_connections counters, so /api/stats always returned zero active connections.

The endpoint now reads the actual connection sources:

  • ws_state: Arc<websocket::AppState> uses ConnectionCounter::total().
  • sse_connection_count() reads the SSE_CONNECTION_COUNT AtomicU64.
  • handle_stats calculates totals from those live values.

Documentation

  • Added a live SSE certificate demo with detail modal.
  • Added a live active-connection counter that reads /api/stats every 30 seconds.
  • Added Google Analytics (GA4) to the docs pages.

Upgrade

Drop-in upgrade from v1.3.1. No configuration or state-file changes.

docker pull ghcr.io/reloading01/certstream-server-rust:1.3.2