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

A Service should disconnect all Clients before it's context is terminated #44

Open
wilsonpage opened this issue Jun 28, 2015 · 2 comments

Comments

@wilsonpage
Copy link
Contributor

  • In window context we can listen to pagehide event
  • In Workers we can listen to close event
@wilsonpage
Copy link
Contributor Author

From my experiments it seems that we are not able to send messages back to clients once a Worker has begun closing down.

To work around this I'm working on the solution that exposes a global 'scope' service in each thread that has a close method. Users will have to manually call this method to guarantee a clean teardown.

@wilsonpage
Copy link
Contributor Author

Thinking this should likely be a plugin and not bloat the core.

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