How could you use the enableNetworkEmulation call with electronDL? I have been trying for a few days and there seems to be no changes in the speed.
calling this
const throttle = '5'; //Bps
browserWindow.webContents.session.enableNetworkEmulation({
downloadThroughput: parseInt(throttle),
});
before
const res = await download(browserWindow, info.url, {
directory: appPath + '/packages',
onProgress: progressHandler
});
EDIT:
Just found this.
electron/electron#21250
If anyone has any other thoughts please leave them, otherwise this seems borked from the start
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too