3. Heartbeat & Runtime Telemetry
While an application can function offline for the entire duration of its grace period, sending a periodic background heartbeat ensures:
-
The offline grace lease is continuously refreshed for another 30 days.
-
The creator gains accurate, pseudonymized lease and runtime telemetry (active machine leases, OS versions, application releases).
-
If a creator revokes a key (e.g. for a fraudulent chargeback), the local application discovers it on the next heartbeat.
-
Continuous Lease Renewal: The offline grace window is refreshed seamlessly whenever internet connectivity is available.
-
Revocation & Refund Enforcement: If a license is refunded, disputed, or suspended, or if the buyer deactivates the seat in the Customer Portal, the local application discovers it on the next heartbeat.
-
Pseudonymized Runtime Health: Creators receive aggregated seat activity insights (active seats, coarse
os/os_version, andapp_versiondistribution).
How the SDK Heartbeat Works
Section titled “How the SDK Heartbeat Works”When initialized via SeatlingClient.init() / client.Initialize(), the SDK automatically starts a non-blocking background heartbeat worker (default interval: 14400 seconds / 4 hours). If the machine is offline, network errors are silently ignored while the offline grace window remains valid.
Under the hood, each heartbeat performs a 1-RTT mutual-challenge exchange against POST /v1/licenses/heartbeat:
- The SDK signs a challenge token (
seatling-heartbeat-challenge-v2+jwt) using the hardware-sealed device key, embeddingseat_id,hwid, an ephemeralsession_id,app_version, coarseos/os_version, and a randomjtinonce. - Seatling verifies the signature, enforces canonical OS binding and concurrent-session rules, and returns a counter-signed acknowledgment token (
seatling-heartbeat-ack-v2+jwt) echoing the client’sjtinonce.
[!NOTE] GDPR Classification & Legal Basis (Art. 4(5), Recital 26 & Art. 6(1)(b)): Heartbeat payloads contain a
seat_id,hwid, and license reference (sub), making them pseudonymized personal data—not anonymous data. Because periodic heartbeats are strictly necessary to renew offline license leases and enforce contract seat terms, they operate under Art. 6(1)(b) GDPR (performance of contract) and ePrivacy Art. 5(3) / TDDDG § 25(2) Nr. 2.Seatling SDKs do not collect behavioral usage or feature clickstreams. If your application separately collects optional behavioral analytics, you must obtain prior opt-in consent (Art. 6(1)(a) / TDDDG § 25(1)). See Privacy & GDPR Compliance.
On-Demand Heartbeat via SDK
Section titled “On-Demand Heartbeat via SDK”In addition to the automatic background worker, you can trigger an immediate 1-RTT mutual-challenge heartbeat (for example, when the user clicks “Refresh License” or reconnects after an offline period):
const leaseStatus = await seatling.heartbeatNow();console.log('Heartbeat status:', leaseStatus.status, 'Authorized:', leaseStatus.isAuthorized);status, err := client.HeartbeatNow()if err == nil { fmt.Printf("Heartbeat status: %s\n", status)}let lease_status = client.heartbeat_now();println!("Heartbeat status: {}", lease_status.status.as_str());auto status = client.heartbeat_now();std::cout << "Heartbeat status: " << seatling::status_to_string(status) << std::endl;