Skip to content

expose Clients to SharedWorker #11295

@jimmywarting

Description

@jimmywarting

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions