BroadcastChannel
The BroadcastChannel
interface represents a named channel that any browsing context of a given origin can subscribe to.
Functions
Link copied to clipboard
The dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Link copied to clipboard
The postMessage()
method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
Link copied to clipboard
fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions? = definedExternally): Observable<T>