-
Notifications
You must be signed in to change notification settings - Fork 84
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
suggestions #128
Comments
I'm struggling to figure this out. Could you reword the problem? On Thu, 26 May 2016, 09:12 publicocean0, [email protected] wrote:
|
I have a websocket. I tried to realize a Service worker for proxy the clients connection so the browser doesnt make a new connection for every page reload. In addition i want the connection stay alive during the navigation so if the websocket sent a event , i can notify the event to the user.
|
Websocket is asynchronous object as Push notification Object. So it is not necessary service worker stays alive along as it is not necessary now for PushManagegment.
Same problem another developer could tell you about event sent messages.
In general we have now powerfull asynchronous ways but we can 't use them because service worker offer just Push Manager that follows a model completely not related to new http abilities.
Shared worker has the life of the shared domain navigation, but if i leave a specific domain i could desire to receive a notification to go again in this site. So shared worker don't satisfy all the possible needs.
A web worker has the life of the page, so it is not for this use.
In addition websocket is not a serializable object , so i can't save it in the cache for restoring it in a following request.
The text was updated successfully, but these errors were encountered: