DedicatedWorkerGlobalScope

abstract external class DedicatedWorkerGlobalScope : 
    WorkerGlobalScope
(source)

Platform and version requirements: JS

Exposes the JavaScript DedicatedWorkerGlobalScope to Kotlin

Constructors

<init>

DedicatedWorkerGlobalScope()

Exposes the JavaScript DedicatedWorkerGlobalScope to Kotlin

Properties

onmessage

open var onmessage: (Event) -> dynamic

Inherited Properties

location

open val location: WorkerLocation

navigator

open val navigator: WorkerNavigator

onerror

open var onerror: (dynamic, String, Int, Int, Any?) -> dynamic

onlanguagechange

open var onlanguagechange: (Event) -> dynamic

onoffline

open var onoffline: (Event) -> dynamic

ononline

open var ononline: (Event) -> dynamic

onrejectionhandled

open var onrejectionhandled: (Event) -> dynamic

onunhandledrejection

open var onunhandledrejection: (Event) -> dynamic

self

open val self: WorkerGlobalScope

Functions

close

fun close()

postMessage

fun postMessage(
    message: Any?,
    transfer: Array<dynamic> = definedExternally)

Inherited Functions

importScripts

fun importScripts(vararg urls: String)