Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否知道下载进度? #1

Open
Nicholas-Luoyi opened this issue Jul 7, 2023 · 2 comments
Open

能否知道下载进度? #1

Nicholas-Luoyi opened this issue Jul 7, 2023 · 2 comments

Comments

@Nicholas-Luoyi
Copy link

你好!我想知道有没有办法能够获取asar的下载进度。如果没有的话,有没有后续添加的计划?

@zeromake
Copy link
Owner

zeromake commented Jul 8, 2023

用的node内置的http库,应该是可以获取到进度的,不过我这边用不上,你可以考虑自己加一下,先通过响应里的头获取总大小,再通过 node steam 流来触发进度更新

@Nicholas-Luoyi
Copy link
Author

好,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants