-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Detect streaming process #1913
Comments
Are you asking how to calculate |
No. The onProgress callback does not display the moment the repository is downloaded using the fetch method.
It seems that the clone method is stuck. I would like to send fetch progress to the onProgress method instead of console.log('download...') output |
Do you know to fix this? Do you want to contribute and add this feature to the library? |
The onProgress method can be passed. Conditionally something like this.
or this
The length of the downloaded file can be transferred. But it uses header Transfer-Encoding: chunked And in the case-proxy header Content-length is removed
I can try to do.... I can write very crookedly... And I don't know the project. That's why I wrote to you. You must know everything about the project. There is also a method onMessage. It might be better to do it through him |
Sorry, I know very little about the project, I mostly do maintenance stuff. I rarely write code myself. The original author who was writing all the code left the project, I decided to maintain it, so the project wouldn't die. I don't know the internals. So if you want this feature you will need to implement it yourself. It would be a nice feature when progress executes more frequently. |
I did what I wanted. It seems to me that it would be good to display all messages in the onMessage method and set the download status. But we need to better understand the project. If the project is large, then these statuses are needed to understand when the code can actually be used. In the video I showed all the statuses that occur when cloning a repository. If I have time, I'll try to do this. Screencast.from.2024-05-20.18-02-50.webm |
Hi!
For streaming downloading, the FIFO class is used.
Here is the cycle where reading occurs during cloning.
Process:
After compression, data downloading begins.
And this process is not in the callbacks
After downloading the following process occurs.
Нow can I display data about the loading progress for the progress bar in percent ?
The text was updated successfully, but these errors were encountered: