ServiceWorkerGlobalScope.clients

The clients read-only property of the ServiceWorkerGlobalScope interface returns the Clients object associated with the service worker.

Syntax

swClients = self.clients 

Value

The Clients object associated with the specific worker.

Specifications

 
Specification Status Comment
Service Workers
The definition of 'ServiceWorkerRegistration.clients' in that specification.
Working Draft Initial definition.
 

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support40 ?441 No24 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4040 ?4424 No4.0

1. Service workers (and Push) have been disabled in the Firefox 45 and 52 Extended Support Releases (ESR).

See also

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, teoli, kscarfone
Last updated by: fscholz,