UNPKG

@ntrip/caster

Version:
22 lines (21 loc) 775 B
/// <reference types="node" /> import stream = require('stream'); import { SingleConnectionTransport } from '../transport'; import { CasterTransportDefinition, CasterTransportInterface } from '../../caster'; export interface StreamTransportOptions { type: 'server' | 'client'; source: string; mountpoint: string; stream?: stream.Duplex; input?: stream.Readable; output?: stream.Writable; str?: string; gga?: string; } export declare class StreamTransport extends SingleConnectionTransport { private readonly options; protected constructor(manager: CasterTransportInterface, options: StreamTransportOptions); static new(options: StreamTransportOptions): CasterTransportDefinition; open(): void; get description(): string; }