Interface

ServiceWorkerMessageEvent

ServiceWorkerMessageEvent

This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker.

Deprecated:
  • In modern browsers, this interface has been deprecated. Service worker messages will now use the MessageEvent interface, for consistency with other web messaging features.

View Source js/lib.dom.d.ts, line 6356