You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
What is the issue with the HTML Standard?
Currently, the
ServiceWorkerGlobalScope
provides access to connected clients viaself.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.The text was updated successfully, but these errors were encountered: