@signalk/streams
Version:
Utilities for handling streams of Signal K data
29 lines • 920 B
TypeScript
import { Transform, TransformCallback } from 'stream';
import type { CreateDebug } from './types';
interface GpsdOptions {
port?: number;
hostname?: string;
host?: string;
noDataReceivedTimeout?: number;
app: {
setProviderStatus(id: string, msg: string): void;
setProviderError(id: string, msg: string): void;
};
providerId: string;
createDebug?: CreateDebug;
[key: string]: unknown;
}
export default class Gpsd extends Transform {
private readonly hostname;
private readonly port;
private readonly debug;
private readonly noDataReceivedTimeout;
private readonly options;
private reconnector;
constructor(options: GpsdOptions);
pipe<T extends NodeJS.WritableStream>(pipeTo: T): T;
end(): this;
_transform(data: Buffer, encoding: BufferEncoding, callback: TransformCallback): void;
}
export {};
//# sourceMappingURL=gpsd.d.ts.map