Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/web/lib.deno_web.d.ts>MessageEvent

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface MessageEvent
implements Event
import { type MessageEvent } from "https://deno.land/x/deno@v1.39.0/ext/web/lib.deno_web.d.ts";

Type Parameters

optional
T = any

Properties

readonly
data: T

Returns the data of the message.

readonly
origin: string

Returns the origin of the message, for server-sent events.

readonly
lastEventId: string

Returns the last event ID string, for server-sent events.

readonly
source: null
readonly
ports: ReadonlyArray<MessagePort>

Returns transferred ports.

variable MessageEvent
import { MessageEvent } from "https://deno.land/x/deno@v1.39.0/ext/web/lib.deno_web.d.ts";

type

{ readonly prototype: MessageEvent; new <T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>; }