Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.ServiceWorkerMessageEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.ServiceWorkerMessageEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.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
data: any
readonly
lastEventId: string
readonly
origin: string
readonly
ports: ReadonlyArray<MessagePort> | null
readonly
source: ServiceWorker | MessagePort | null