-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Tracker object doesn't work on client opts #2376
Labels
Comments
const WebTorrent = require('webtorrent');
const trackerObject = {
announce: 'udp://localhost:8000'
};
const client = new WebTorrent({
tracker: trackerObject
});
client.seed('./uploads/video.mp4', (torrent) => {
console.log(torrent.announce);
}); Try this instead |
@gauravsaini same result |
const announceUrls = [ const client = new Client({ |
I had the same problem |
now it works like this client.seed('./seed-me.txt', { announce: ['ws://[::1]:5000'] }, (torrent) => {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of this package are you using?
1.8.30
What operating system, Node.js, and npm version?
Windows 10, nodejs: v16.13.1, npm: 8.1.2
What happened?
Tried to initiate new client with custom opts and provided tracker object like following code
and console logged torrent files announce addresses it gives me default addresses instead my provided custom one
The text was updated successfully, but these errors were encountered: