A heartbeat proves the connection is alive, not that anything is subscribed to it. Heartbeats, stale detection, reconnect backoff and teardown for long-lived Server-Sent Events.
Every browser tab that opens an EventSource holds its own connection. How tabs can share one connection instead, using leader election over