interface dom.ServiceWorkerMessageEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.5.2/mod.ts";
const { ServiceWorkerMessageEvent } = dom;
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.
Properties
readonly
ports: ReadonlyArray<MessagePort> | nullreadonly
source: ServiceWorker | MessagePort | null