← Docs
kotlin-stdlib / org.w3c.dom / BroadcastChannel

BroadcastChannel

JS
1.1
open class BroadcastChannel : EventTarget
(source)

Exposes the JavaScript BroadcastChannel to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript BroadcastChannel to Kotlin

BroadcastChannel ( name : String )

Properties

JS
1.1

name

open val name : String
JS
1.1

onmessage

var onmessage : ( ( MessageEvent ) -> dynamic ) ?

Functions

JS
1.1

close

fun close ( )
JS
1.1

postMessage

fun postMessage ( message : Any ? )
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .