Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to verify if the given torrentId is valid? #1416
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
Yep, the error event will be called |
This comment has been minimized.
This comment has been minimized.
|
Hey @Shai1436, As @KayleePop has said, there is no out of the box solution for checking if a identifier is valid before adding it to the client, but the error event will be emitted from the Note: if |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there any out of the box function to check if the given torrentId/magnetURI is valid before adding it to the client?
Will client.on('error', function (err) {}) API be called in those cases?
If not what is the best way to do it?