Interface: IMessage
Hierarchy
↳ IMessage
Index
Properties
- AT_TARGET
- BUBBLING_PHASE
- CAPTURING_PHASE
- MessageEvent
- NONE
- bubbles
- cancelBubble
- cancelable
- composed
- currentTarget
- data
- defaultPrevented
- eventPhase
- isTrusted
- lastEventId
- origin
- ports
- returnValue
- source
- srcElement
- target
- timeStamp
- type
Methods
Properties
Readonly AT_TARGET
• AT_TARGET: number
Inherited from IMessage.AT_TARGET
Defined in node_modules/typescript/lib/lib.dom.d.ts:5336
Readonly BUBBLING_PHASE
• BUBBLING_PHASE: number
Inherited from IMessage.BUBBLING_PHASE
Defined in node_modules/typescript/lib/lib.dom.d.ts:5337
Readonly CAPTURING_PHASE
• CAPTURING_PHASE: number
Inherited from IMessage.CAPTURING_PHASE
Defined in node_modules/typescript/lib/lib.dom.d.ts:5338
MessageEvent
• MessageEvent: object
Defined in node_modules/typescript/lib/lib.dom.d.ts:10430
Type declaration:
-
new __type(
type: string,eventInitDict?: MessageEventInit): MessageEvent -
prototype: MessageEvent
Readonly NONE
• NONE: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:5339
Readonly bubbles
• bubbles: boolean
Inherited from IMessage.bubbles
Defined in node_modules/typescript/lib/lib.dom.d.ts:5278
Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
cancelBubble
• cancelBubble: boolean
Inherited from IMessage.cancelBubble
Defined in node_modules/typescript/lib/lib.dom.d.ts:5279
Readonly cancelable
• cancelable: boolean
Inherited from IMessage.cancelable
Defined in node_modules/typescript/lib/lib.dom.d.ts:5283
Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
Readonly composed
• composed: boolean
Inherited from IMessage.composed
Defined in node_modules/typescript/lib/lib.dom.d.ts:5287
Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
Readonly currentTarget
• currentTarget: EventTarget | null
Inherited from IMessage.currentTarget
Defined in node_modules/typescript/lib/lib.dom.d.ts:5291
Returns the object whose event listener's callback is currently being invoked.
data
• data: IWorkerData
Overrides void
Defined in src/worker/WorkerPool.ts:7
Readonly defaultPrevented
• defaultPrevented: boolean
Inherited from IMessage.defaultPrevented
Defined in node_modules/typescript/lib/lib.dom.d.ts:5295
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
Readonly eventPhase
• eventPhase: number
Inherited from IMessage.eventPhase
Defined in node_modules/typescript/lib/lib.dom.d.ts:5299
Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
Readonly isTrusted
• isTrusted: boolean
Inherited from IMessage.isTrusted
Defined in node_modules/typescript/lib/lib.dom.d.ts:5303
Returns true if event was dispatched by the user agent, and false otherwise.
Readonly lastEventId
• lastEventId: string
Inherited from IMessage.lastEventId
Defined in node_modules/typescript/lib/lib.dom.d.ts:10415
Returns the last event ID string, for server-sent events.
Readonly origin
• origin: string
Inherited from IMessage.origin
Defined in node_modules/typescript/lib/lib.dom.d.ts:10419
Returns the origin of the message, for server-sent events and cross-document messaging.
Readonly ports
• ports: ReadonlyArray‹MessagePort›
Defined in node_modules/typescript/lib/lib.dom.d.ts:10423
Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
returnValue
• returnValue: boolean
Inherited from IMessage.returnValue
Defined in node_modules/typescript/lib/lib.dom.d.ts:5304
Readonly source
• source: MessageEventSource | null
Inherited from IMessage.source
Defined in node_modules/typescript/lib/lib.dom.d.ts:10427
Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
Readonly srcElement
• srcElement: EventTarget | null
Inherited from IMessage.srcElement
Defined in node_modules/typescript/lib/lib.dom.d.ts:5306
deprecated
target
• target: KyubWorker
Overrides void
Defined in src/worker/WorkerPool.ts:8
Readonly timeStamp
• timeStamp: number
Inherited from IMessage.timeStamp
Defined in node_modules/typescript/lib/lib.dom.d.ts:5314
Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
Readonly type
• type: string
Defined in node_modules/typescript/lib/lib.dom.d.ts:5318
Returns the type of event, e.g. "click", "hashchange", or "submit".
Methods
composedPath
▸ composedPath(): EventTarget[]
Inherited from IMessage.composedPath
Defined in node_modules/typescript/lib/lib.dom.d.ts:5322
Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
Returns: EventTarget[]
initEvent
▸ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void
Inherited from IMessage.initEvent
Defined in node_modules/typescript/lib/lib.dom.d.ts:5323
Parameters:
| Name | Type |
|---|---|
type |
string |
bubbles? |
boolean |
cancelable? |
boolean |
Returns: void
preventDefault
▸ preventDefault(): void
Inherited from IMessage.preventDefault
Defined in node_modules/typescript/lib/lib.dom.d.ts:5327
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Returns: void
stopImmediatePropagation
▸ stopImmediatePropagation(): void
Inherited from IMessage.stopImmediatePropagation
Defined in node_modules/typescript/lib/lib.dom.d.ts:5331
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
Returns: void
stopPropagation
▸ stopPropagation(): void
Inherited from IMessage.stopPropagation
Defined in node_modules/typescript/lib/lib.dom.d.ts:5335
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns: void