interface MessageEvent
implements Event
import { type MessageEvent } from "https://deno.land/x/evt@v2.4.13/lib/types/lib.dom.ts";
A message received by a target object.
Properties
readonly
ports: ReadonlyArray<MessagePort>Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
readonly
source: MessageEventSource | nullReturns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.