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

API improve #750

Merged
merged 2 commits into from May 2, 2016
Merged

API improve #750

merged 2 commits into from May 2, 2016

Conversation

@DiegoRBaquero
Copy link
Member

DiegoRBaquero commented Apr 12, 2016

infohash, metadata and ready note. Added uploaded

infohash, metadata and ready note. Added uploaded
docs/api.md Outdated
@@ -400,6 +399,21 @@ See the `bittorrent-protocol`
[extension api docs](https://github.com/feross/bittorrent-protocol#extension-api) for more
information on how to define a protocol extension.

## `torrent.on('infoHash', function () {})`

Emitted when the info hash of the torrent has been determined. Can only be accessed synchronously as client.add calls onTorrent callback after 'infoHash' event has been emitted.

This comment has been minimized.

Copy link
@feross

feross Apr 16, 2016

Member

I don't think we need the extra text. It makes it more confusing IMO. It's already clear from the fact that this is an event that it's async.

@feross

This comment has been minimized.

Copy link
Member

feross commented Apr 16, 2016

Documenting the 'upload' event is great, but I'm -1 for the other changes.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member Author

DiegoRBaquero commented Apr 16, 2016

@feross removed extra comments

@feross feross merged commit 179bcd0 into master May 2, 2016
4 checks passed
4 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@feross feross deleted the api-improvement branch May 2, 2016
@lock

This comment has been minimized.

Copy link

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 issues

Successfully merging this pull request may close these issues.

None yet

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