@signalk/streams
Version:
Utilities for handling streams of Signal K data
14 lines • 492 B
TypeScript
import { Transform, TransformCallback } from 'stream';
interface TcpServerOptions {
app: {
on(event: string, cb: (...args: any[]) => void): void;
};
}
export default class TcpServer extends Transform {
private readonly options;
constructor(options: TcpServerOptions);
pipe<T extends NodeJS.WritableStream>(pipeTo: T): T;
_transform(data: Buffer, encoding: BufferEncoding, callback: TransformCallback): void;
}
export {};
//# sourceMappingURL=tcpserver.d.ts.map