Skip to main content

createChunkedSender

danger

Internal API - Not intended for use outside rpldy packages.

Package​

Installation​

npm install @rpldy/chunked-sender

Details​


type ChunkedSender = {
send: SendMethod;
};

type createChunkedSender = (options: ChunkedOptions) => ChunkedSender;

Options​

Name (* = mandatory)TypeDefaultDescription
chunkedbooleantruechunk uploads. setting to false will return to default sending behavior
chunkSizenumber5242880the chunk size. relevant when uploaded file is larger than the value
retriesnumber0how many times to retry sending a failed chunk
parallelnumber0how many (chunk) requests to send simultaneously