UNPKG

navflow-browser-server

Version:

Standalone Playwright browser server for NavFlow - enables browser automation with API key authentication, workspace device management, session sync, and requires Node.js v22+

50 lines 1.25 kB
import { BrowserManager } from './BrowserManager'; export declare class HeartbeatService { private intervalId; private proxyServerUrl; private apiKey; private deviceId; private browserManager; private version; private startTime; private isShuttingDown; private updateService; constructor(browserManager: BrowserManager, apiKey: string, version: string, proxyServerUrl?: string); /** * Start the heartbeat service */ start(): void; /** * Stop the heartbeat service */ stop(): void; /** * Get system metrics for heartbeat */ private getSystemMetrics; /** * Format uptime in human readable format */ private formatUptime; /** * Send heartbeat to proxy server */ private sendHeartbeat; /** * Send offline heartbeat when shutting down */ private sendOfflineHeartbeat; /** * Handle update available notification */ private handleUpdateAvailable; /** * Set device ID (called after device registration) */ setDeviceId(deviceId: string): void; /** * Check if heartbeat service is running */ isRunning(): boolean; } //# sourceMappingURL=HeartbeatService.d.ts.map