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 upCan't get torrent.on('wire', function(wire, addr) {}) to work #470
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero Sorry for missing this before. No idea why this would be happening, especially since the code is clearly already inside |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have the following:
For some reason it never gets called. I also tried using the one in the examples and still nothing.
What's weird is that I do receive:
webtorrent:torrent got wire (192.168.x.x:y) +1msAccording to https://github.com/feross/webtorrent/blob/master/lib/torrent.js it should get called, as it doesn't stop in any point inside
Torrent.prototype._onWirebut I still don't receive the event.Any help is appreciated. Thank you!
Update
Figured that when the peer is LAN the event isn't emitted, however external ones do. I still can't figure why.