SharedWorker

JS
1.1
open class SharedWorker : EventTarget, AbstractWorker

Exposes the JavaScript SharedWorker to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript SharedWorker to Kotlin

SharedWorker(
    scriptURL: String,
    name: String = definedExternally,
    options: WorkerOptions = definedExternally)

Properties

JS
1.1

onerror

open var onerror: ((Event) -> dynamic)?
JS
1.1

port

open val port: MessagePort