Skip to content
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

Initialize WRTC #937

Merged
merged 1 commit into from Oct 4, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Initialize WRTC

  • Loading branch information
DiegoRBaquero committed Oct 3, 2016
commit b73c9791b57b09a98a7cc3faeee5ec6d8e8767bc
@@ -101,9 +101,10 @@ function WebTorrent (opts) {
if (opts.wrtc) {
// TODO: remove in v1
console.warn('WebTorrent: opts.wrtc is deprecated. Use opts.tracker.wrtc instead')
self.tracker.wrtc = opts.wrtc // to support `webtorrent-hybrid` package
self.tracker.wrtc = opts.wrtc

This comment has been minimized.

Copy link
@feross

feross Oct 4, 2016

Member

Good call removing this comment -- this option can be used by any package, not just webtorrent-hybrid :)

}
if (global.WRTC && !self.tracker.wrtc) self.tracker.wrtc = global.WRTC
if (typeof self.tracker.wrtc === 'function') self.tracker.wrtc = self.tracker.wrtc() // Initialize
}

if (typeof TCPPool === 'function') {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.