Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guest271314/cde8c5e0cd1b786b3c3027fde2b8dd57 to your computer and use it in GitHub Desktop.
Save guest271314/cde8c5e0cd1b786b3c3027fde2b8dd57 to your computer and use it in GitHub Desktop.
@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.
@guest271314
Copy link
Author

@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