makeNetstringCapTP = (
  name,
  bytesWriter,
  bytesReader,
  cancelled,
  bootstrap,
) => {
  const messageWriter = mapWriter(
    makeNetstringWriter(bytesWriter, { chunked: true }),
    messageToBytes,
  );
  const messageReader = mapReader(
    makeNetstringReader(bytesReader),
    bytesToMessage,
  );
  return makeMessageCapTP(
    name,
    messageWriter,
    messageReader,
    cancelled,
    bootstrap,
  );
}
@template TBootstrap
@param {string} name
@param {Writer<Uint8Array>} bytesWriter
@param {Reader<Uint8Array>} bytesReader
@param {Promise<void>} cancelled
@param {TBootstrap} bootstrap