v1.8.0
  • Solutions
    • Multiplatform Mobile
    • Multiplatform for other platforms
    • Server-side
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / org.w3c.dom / SharedWorker

SharedWorker

JS
1.1
open class SharedWorker : EventTarget, AbstractWorker
(source)

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
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains