Results 61 - 80 of 164


The postMessage() method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.
API DedicatedWorkerGlobalScope Method postMessage Reference Référence Web Workers


The activeWorker read-only property of the InstallEvent interface returns the ServiceWorker that is currently actively controlling the page.
activeWorker API InstallEvent Property Reference Service Workers ServiceWorker


The Navigator.serviceWorker read-only property returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
API Navigator Property Reference Référence Service Workers ServiceWorker

Push API

The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded, on a user agent. This lets developers deliver asynchronous notifications and updates to users that opt in, resulting in better engagement with timely new content.
API Experimental Landing Notifications Push Reference Service Workers