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

Messenger needs persistent background context #133

Open
wolfspelz opened this issue Nov 8, 2021 · 1 comment
Open

Messenger needs persistent background context #133

wolfspelz opened this issue Nov 8, 2021 · 1 comment
Labels
topic: service worker Related to service worker background scripts

Comments

@wolfspelz
Copy link

We have a messenger which uses a persistent xmpp/websocket connection.

The background page has the connection and manages state of multiple tabs, each tab being a chat room. Not having persistent connections would prohibit continuous presence in chat rooms and private chats. The chat server would see me leaving and entering every 5 minutes, which would be annoying and kind of wrong.

Whatsmore, the common state would have to be moved from background memory into content pages or into persistent storage, which would be difficult and also kind of wrong.

But the main point is that a messenger with a persistent network connection coordinating chat rooms in multiple tabs needs a persistent context. A limited lifetime would probably kill it.

github
weblin.io

Related to "Use cases that are not well served by service workers" #72

@aeharding
Copy link

@wolfspelz would this proposal address your problems? (I'm an extension developer that's also experiencing problems with mv3.)

#137 (comment)

@xeenon xeenon added the topic: service worker Related to service worker background scripts label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: service worker Related to service worker background scripts
Projects
None yet
Development

No branches or pull requests

3 participants