Interface ProtobufStream<Stream>

Convenience methods for working with protobuf streams

interface ProtobufStream<Stream> {
    pb<T>(proto): MessageStream<T, Stream>;
    read<T>(proto, options?): Promise<T>;
    unwrap(): Stream;
    write<T>(data, proto, options?): Promise<void>;
    writeV<T>(input, proto, options?): Promise<void>;
}

Type Parameters

  • Stream = unknown

Methods