MessageEvent

JS
1.1
open class MessageEvent : Event

Exposes the JavaScript MessageEvent to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript MessageEvent to Kotlin

MessageEvent(
    type: String,
    eventInitDict: MessageEventInit = definedExternally)

Properties

JS
1.1

data

open val data: Any?
JS
1.1

lastEventId

open val lastEventId: String
JS
1.1

origin

open val origin: String
JS
1.1

ports

open val ports: Array<out MessagePort>
JS
1.1

source

open val source: UnionMessagePortOrWindow?

Functions

JS
1.1

initMessageEvent

fun initMessageEvent(
    type: String,
    bubbles: Boolean,
    cancelable: Boolean,
    data: Any?,
    origin: String,
    lastEventId: String,
    source: UnionMessagePortOrWindow?,
    ports: Array<MessagePort>)