@canboat/visual-analyzer
Version:
NMEA 2000 data visualization utility (requires SK Server >= 2.15)
54 lines • 1.87 kB
TypeScript
/**
* Copyright 2025 Scott Bender (scott@scottbender.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EventEmitter } from 'events';
import { INMEAProvider, ConnectionProfile } from './types';
declare class NMEADataProvider extends EventEmitter implements INMEAProvider {
options: ConnectionProfile;
private configPath;
private isConnected;
private authToken;
private authRequestId;
private pendingAuthResolve;
private signalKWs;
private canDevice;
private fileStream;
private playbackTimer;
private readline;
private lineQueue;
private isProcessingQueue;
private currentFilePath;
constructor(options: ConnectionProfile, configPath: string);
connect(): Promise<void>;
private connectToSignalK;
private authenticateViaWebSocket;
private handleAuthenticationResponse;
private handleLogoutResponse;
getServerApp(): any;
private connectToFile;
private setupFileStream;
private processQueue;
private startFilePlayback;
private restartFilePlayback;
private processSignalKUpdate;
disconnect(): void;
private logoutFromSignalK;
private getDelimiterForDevice;
isConnectionActive(): boolean;
getAuthStatus(): any;
sendMessage(data: any): void;
}
export default NMEADataProvider;
//# sourceMappingURL=nmea-provider.d.ts.map