UNPKG

@signalk/streams

Version:

Utilities for handling streams of Signal K data

37 lines 1.11 kB
import { Transform, TransformCallback } from 'stream'; import { CreateDebug } from './types'; interface MdnsWsOptions { app: { config: { getExternalHostname(): string; getExternalPort(): number; }; setProviderStatus(id: string, msg: string): void; setProviderError(id: string, msg: string): void; }; providerId: string; createDebug?: CreateDebug; host?: string; port?: number; type?: string; subscription?: string; selfHandling?: string; remoteSelf?: string; ignoreServers?: string[]; selfsignedcert?: boolean; } export default class MdnsWs extends Transform { private readonly options; private readonly selfHost; private readonly selfPort; private readonly remoteServers; private readonly debug; private readonly dataDebug; private handleContext; private signalkClient?; constructor(options: MdnsWsOptions); private connectClient; _transform(chunk: unknown, encoding: BufferEncoding, done: TransformCallback): void; } export {}; //# sourceMappingURL=mdns-ws.d.ts.map