Created
May 11, 2020 02:07
-
-
Save guest271314/cde8c5e0cd1b786b3c3027fde2b8dd57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pinoyyid Re https://stackoverflow.com/questions/61550581/can-i-http-poll-or-use-socket-io-from-a-service-worker-on-safari-ios, https://stackoverflow.com/questions/61602441/what-are-the-restrictions-on-what-can-and-cannot-be-done-in-a-a-service-worker `EventSource` could probably be used, see https://stackoverflow.com/q/42475492. | |
iOS does not support `FetchEvent` where `event.respondwith()` can be used for continuous polling and keeping `ServiceWorker` alive. Alternatively, a `Worker` or `SharedWorker` can be used to achieve the same result. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pinoyyid Re https://stackoverflow.com/questions/61550581/can-i-http-poll-or-use-socket-io-from-a-service-worker-on-safari-ios, https://stackoverflow.com/questions/61602441/what-are-the-restrictions-on-what-can-and-cannot-be-done-in-a-a-service-worker
EventSource
could probably be used, see https://stackoverflow.com/q/42475492.iOS does not support
FetchEvent
whereevent.respondwith()
can be used for continuous polling and keepingServiceWorker
alive. Alternatively, aWorker
orSharedWorker
can be used to achieve the same result.