BroadcastChannel

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Functions

Link copied to clipboard
fun close()

Closes the BroadcastChannel object, opening it up to garbage collection.

Link copied to clipboard
Link copied to clipboard
fun postMessage(message: Any?)

Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.