-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add link explaining the Safari workaround #13
Comments
it says right above. Or are you looking for something more in-depth? It's necessary to keep the worker alive. Safari seems to kill workers that don't receive messages. |
Right, I saw that. I was looking for more info. Just curious about the behavior. |
There really isn’t much more info than that :D We were just wondering why our worker suddenly stopped polling idb and it seems that Safari assumes that if a worker doesn’t receive or send messages after ~3 seconds, it’s superfluous and kills it. Sending messages, even if there’s no message handler in the worker, seems to prevent Safari from killing it. |
Welp, the good news is that we're creating the documentation now with this thread! |
https://github.com/PolymerLabs/actor-boilerplate/blob/master/src/bootstrap.ts#L25
Got an issue or PR that explains why this is needed?
The text was updated successfully, but these errors were encountered: