You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: way to get sync progress from API #745
It would be nice if there were a way to get some rough measure of sync progress via the API. Something like: 1) the number of total cached messages visible on connected nodes and 2) number of cached messages on local node. This way clients could poll it to display sync progress to the user. Otherwise, they think it's broken and see no reason to leave the app open while it syncs.
Right now I just show # of messages processed, which at least let's users see that it's doing something. What I'd really like to show is: "number of messages other nodes have told me about but I don't have yet".
Look at the latest two commits in my fork (mailchuck@53062f6 and mailchuck@f933cea) for guidelines how to write the API change yourself. The commits expose the number of unsynced objects to the GUI in the network tab. I don't plan on making the API change myself before 0.6, but I can merge a commit if you want to do it.
Activity
PeterSurda commentedon Nov 11, 2015
This sounds interesting.
stevedekorte commentedon Nov 11, 2015
Right now I just show # of messages processed, which at least let's users see that it's doing something. What I'd really like to show is: "number of messages other nodes have told me about but I don't have yet".
PeterSurda commentedon Nov 11, 2015
Yes that's how I understood it too. I think it would be helpful to see the progress status and I also think it is doable.
PeterSurda commentedon Nov 11, 2015
Do you want this shown in the UI, exposed to the API calls or both?
stevedekorte commentedon Nov 11, 2015
In the API. We've written our own Bitmessage UI app called Bitpost: https://voluntary.net/bitpost/
We may be doing a JS port next year and moving to the JS implementation of Bitmessage.
Show sync status in Network tab
PeterSurda commentedon Nov 12, 2015
Look at the latest two commits in my fork (mailchuck@53062f6 and mailchuck@f933cea) for guidelines how to write the API change yourself. The commits expose the number of unsynced objects to the GUI in the network tab. I don't plan on making the API change myself before 0.6, but I can merge a commit if you want to do it.
Show sync status in Network tab