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 upclient.seed callback not called when tab is not focused. #1796
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am using the WebTorrent Browser version in an Angular app.
From a web-torrent.service.ts, I have a function
This function is called from a component, simply like that:
this.webTorrentService.startTorrent(onTorrent)It turns out that my callback 'onTorrent' is never triggered when the browser tab is not in focus. It will be triggered only when the tab gets the focus again. Is it a normal behavior ?
The issue appears in both firefox and chrome.
I couldn't build a gist to reproduce the error, since there's an error with the client.seed method when you use webtorrent.min.js as-is.