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 upclient.add's callback does not get called #1227
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
The callback is called when metadata is fetched. You might be using a magnet which is not seeded anywhere. Try the same magnet in instant.io |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.

What version of WebTorrent?
0.98.20
What operating system and Node.js version?
Ubuntu 17.04, Node v8.2.0
What browser and version? (if using WebTorrent in the browser)
Chrome 61
What did you expect to happen?
I'm trying to use webtorrent in a React app.
What actually happened?
I'm using webpack - I initially tried to import webtorrent like
But got errors related to the fs module not being found - makes sense since I'm running the app inside a browser. I "solved" this issue the same way a user in another issue did, importing the minified version like
However this seems to produce a nasty litttle warning

And this snippet doesn't work:
Does not produce errors, but the callback is never called.