ServiceWorkerGlobalScope.clients

A propriedade somente-leitura clients da interface ServiceWorkerGlobalScope retorna os objetos dos Clients associatos ao service worker.

Sintaxe

swClients = self.clients 

Valor

O objeto Clients associado ao service worker específico.

Especificações

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

Compatibilidade

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
clients
Experimental
Chrome Full support 40Edge ? Firefox Full support 44
Notes
Full support 44
Notes
Notes Service workers (and Push) have been disabled in the Firefox 45 and 52 Extended Support Releases (ESR).
IE No support NoOpera Full support 24Safari Full support 11.1WebView Android Full support 40Chrome Android Full support 40Firefox Android Full support 44Opera Android Full support 24Safari iOS Full support 11.3Samsung Internet Android Full support 4.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

Veja também