Skip to content

expose Clients to SharedWorker #11295

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

Closed
jimmywarting opened this issue May 10, 2025 · 1 comment
Closed

expose Clients to SharedWorker #11295

jimmywarting opened this issue May 10, 2025 · 1 comment

Comments

@jimmywarting
Copy link

What is the issue with the HTML Standard?

Currently, the ServiceWorkerGlobalScope provides access to connected clients via self.clients, which is very useful for managing communication and broadcasting messages across documents controlled by the service worker.

However, SharedWorker does not have access to this same API, despite being another shared execution context across multiple documents. it feels like a gap in capability – one would have to install a service worker and passing message (ports) around.

It would help in use cases where a SharedWorker acts as a messaging hub or state synchronizer, but installing a ServiceWorker feels like overkill or adds unnecessary complexity.

@wanderview
Copy link
Member

Related to w3c/ServiceWorker#955

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

No branches or pull requests

2 participants