MessagePort
abstract class MessagePort :
EventTarget,
UnionMessagePortOrWindowProxy,
UnionMessagePortOrServiceWorker,
UnionClientOrMessagePortOrServiceWorker
Exposes the JavaScript MessagePort to Kotlin
Constructors
<init>
Exposes the JavaScript MessagePort to Kotlin
MessagePort()
Properties
onmessage
open var onmessage: ((MessageEvent) -> dynamic)?
Functions
close
fun close()
postMessage
fun postMessage(
message: Any?,
transfer: Array<dynamic> = definedExternally)
start
fun start()