ExtendableMessageEvent

open class ExtendableMessageEvent(    val type: EventType<ExtendableMessageEvent>,     init: ExtendableMessageEventInit = definedExternally) : ExtendableEvent(source)

The ExtendableMessageEvent interface of the Service Worker API represents the event object of a ServiceWorkerGlobalScope/message_event event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<ExtendableMessageEvent>, init: ExtendableMessageEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val data: JsAny?

The data read-only property of the data type.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The lastEventID read-only property of the A string.

Link copied to clipboard
Link copied to clipboard

The origin read-only property of the A string.

Link copied to clipboard

The ports read-only property of the channel (the channel the message is being sent through.) An array of MessagePort objects.

Link copied to clipboard

The source read-only property of the A Client, ServiceWorker or MessagePort object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun asInit(): ExtendableMessageEventInit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun waitUntil(f: Promise<*>)

The ExtendableEvent.waitUntil() method tells the event dispatcher that work is ongoing.