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

Question: callback for block transfer progress #389

Open
dakhnod opened this issue Dec 19, 2024 · 1 comment
Open

Question: callback for block transfer progress #389

dakhnod opened this issue Dec 19, 2024 · 1 comment

Comments

@dakhnod
Copy link

dakhnod commented Dec 19, 2024

Thanks again for your great work!

When uploading data via setting the block1 or block2 option, is there an option to receive an event after each block sent/received?

This would allow for displaying a status bar, for example.

@dakhnod dakhnod changed the title Question: callback for block transfer Question: callback for block transfer progress Dec 19, 2024
@JKRhb
Copy link
Member

JKRhb commented Jan 18, 2025

Thank you for opening this issue, @dakhnod! I think that would be a nice addition, since both the server and the agent extend the EventEmitter class, maybe these could be modeled as additional event types. We would probably only need to decide which information to include in the emitted event objects to be able to associate them with the ongoing exchange.

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

No branches or pull requests

2 participants