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 upMove tracker options into `opts.tracker` (#649) #791
Conversation
| if (typeof self.tracker === 'object') { | ||
| self.tracker.rtcConfig = opts.rtcConfig | ||
| self.tracker.wrtc = opts.wrtc || global.WRTC // to support `webtorrent-hybrid` package | ||
| } |
This comment has been minimized.
This comment has been minimized.
feross
May 8, 2016
Member
These options should be passed into the tracker constructor, not set directly on the tracker object like this.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hi Feross, do you mean with nevermind leave it like this? Because I can fix that |
This comment has been minimized.
This comment has been minimized.
|
@nkittsteiner Thanks a lot for this PR. It illuminated a few issues that I hadn't though of, like how to handle I'll send a PR that builds on yours. |
Closes #649 Based on a PR by @nkittsteiner. #791
This comment has been minimized.
This comment has been minimized.
|
See: #793 |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
May 4, 2018
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
nkittsteiner commentedMay 7, 2016
Moving wtrc and rtcConfig opts to opts.tracker. Hope it helps :)