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

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

💧EventEmitter's typesafe replacement
Go to Latest
interface ServiceWorkerMessageEvent
implements Event
import { type ServiceWorkerMessageEvent } from "https://deno.land/x/evt@v2.4.20/lib/types/lib.dom.ts";

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