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

[CLOSED] Add support for Client.add callbacks. #102

Closed
feross opened this issue Sep 21, 2014 · 1 comment
Closed

[CLOSED] Add support for Client.add callbacks. #102

feross opened this issue Sep 21, 2014 · 1 comment

Comments

@feross
Copy link
Member

@feross feross commented Sep 21, 2014

Issue by ivantodorovich
Sunday May 11, 2014 at 17:03 GMT
Originally opened as https://github.com/feross/bittorrent-client/pull/6


convenience callback.
Sometimes you want a callback for a specific torrent.

Alternatively, instead of doing:

Client.add(link)
Client.on('torrent', function(torrent) { ... }) // can be any torrent

do:

Client.add(link, function(torrent) { ... }) // cb specific for this torrent

callback is run before Client's 'torrent' event.


ivantodorovich included the following code: https://github.com/feross/bittorrent-client/pull/6/commits

@feross

This comment has been minimized.

Copy link
Member Author

@feross feross commented Sep 21, 2014

Comment by feross
Sunday May 11, 2014 at 20:56 GMT


Thanks, published as 0.0.3.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
This issue was closed.
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
1 participant
You can’t perform that action at this time.