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

Get Download speed, Upload speed And progress from node #701

Closed
NaiTreNo opened this issue Mar 28, 2016 · 2 comments
Closed

Get Download speed, Upload speed And progress from node #701

NaiTreNo opened this issue Mar 28, 2016 · 2 comments

Comments

@NaiTreNo
Copy link

@NaiTreNo NaiTreNo commented Mar 28, 2016

Hello, I'm trying to make a code that makes me able to download torrent via node inside PHP, I succeeded when I make it run using but now I'm trying to get process details in PHP can that be done? Thanks.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 28, 2016

WebTorrent has two command line flags for getting information about the download progress.

--on-done [script]      run script after torrent download is done
--on-exit [script]      run script before program exit

With these flags, you can make scripts run when the torrent completes. But, honestly, this might be a bit tricky to do out of the box.

You might want to write your own Node.js script which regularly outputs progress to stdout, then read that output from your PHP process.

@feross feross closed this Mar 28, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.