UNPKG

signalk-parquet

Version:

SignalK plugin to save marine data directly to Parquet files with regimen-based control

39 lines 1.06 kB
import { Server as HttpServer } from 'http'; import { HistoryAPI } from './HistoryAPI'; export interface StreamingServiceOptions { historyAPI: HistoryAPI; selfId: string; debug?: boolean; } export interface StreamSubscription { id: string; path: string; timeWindow: string; aggregates: string[]; refreshInterval: number; timer?: NodeJS.Timeout; } export declare class StreamingService { private wss; private historyAPI; private selfId; private debug; private activeSubscriptions; private connectedClients; constructor(httpServer: HttpServer, options: StreamingServiceOptions); private setupEventHandlers; private handleMessage; private handleSubscribe; private handleUnsubscribe; private startStreaming; private stopStreaming; private calculateTimeWindow; broadcast(data: any): void; getStats(): { connectedClients: number; activeSubscriptions: number; }; shutdown(): void; private log; } //# sourceMappingURL=streaming-service.d.ts.map