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

What happens with this when the Service Worker shuts down? #3

Open
nickchomey opened this issue Dec 14, 2022 · 0 comments
Open

What happens with this when the Service Worker shuts down? #3

nickchomey opened this issue Dec 14, 2022 · 0 comments

Comments

@nickchomey
Copy link

nickchomey commented Dec 14, 2022

First, thanks so much for this great article and code example - they are very helpful to me!

However, my understanding of Service Workers (especially on mobile devices) is that they shut down very frequently and there's essentially nothing that can be done to control this.

So, what happens to the SSE connection when the Service Worker shuts down? It wouldn't be able to receive any new events/messages. Do you use any sort of timer loop to trigger a re-connection? Or are you just content to let that happen on its own, be it from other events or new tabs triggering the SW?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant