A message reader/writer that only uses one type of message

interface MessageStream<T, S> {
    read(options?): Promise<T>;
    unwrap(): ProtobufStream<S>;
    write(d, options?): Promise<void>;
    writeV(d, options?): Promise<void>;
}

Type Parameters

  • T
  • S = unknown

Methods