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 upOption 'port' is required #1071
Comments
This comment has been minimized.
This comment has been minimized.
|
I fixed this by using a random torrentPort. However, webtorrent is still not working. |
This comment has been minimized.
This comment has been minimized.
|
Sorry, I don't use React Native and it's unclear from your bug report what the issue could be. If you have a PR that fixes your issue, feel free to submit it. |
This comment has been minimized.
This comment has been minimized.
|
on RN (with rn-nodeify) this error goes away after passing: new WebTorrent({ torrentPort: 12318 }); now with client.add torrent gets partially added - second add try results in unique validation exception but no torrent is visible in client.torrents array nor client.on 'torrent' handler (or client.add callback) is being called... Has anyone been successful in running webtorrent under react-native so far? PS: i used: rn-nodeify --install buffer,crypto,stream,util,process,vm,events,path,fs,http,https,url --hack |
This comment has been minimized.
This comment has been minimized.
|
I was able to use webtorrent with react-native. If I remember correctly, you have to update some nodes libraries. The current rn-nodify are using old shimed libraries and they are not compatible with others. |
I'm using webtorrent on react native, with the help of rn-nodeify. But I got an error: Option 'port' is required at index.js:20:44
What version of WebTorrent?
0.98.9
What operating system and Node.js version?
OSX, 6.3.1
What browser and version? (if using WebTorrent in the browser)
In Iphone 6 iOS 10.2 simulator
What did you expect to happen?
What actually happened?
Option 'port' is required at index.js:20:44