package js.html
extends EventTarget
Available on jsThe
BroadcastChannelinterface represents a named channel that any browsing context of a given origin can subscribe to. It allows communication between different documents (in different windows, tabs, frames or iframes) of the same origin. Messages are broadcasted via amessageevent fired at allBroadcastChannelobjects listening to the channel.Documentation BroadcastChannel by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (channel:String)Throws:
null |
DOMError |
|---|
read only name:StringReturns a DOMString, the name of the channel.
onmessage:FunctionIs an EventHandler property that specifies the function to execute when a message event is fired on this object.
close ():VoidCloses the channel object, indicating it won't get any new messages, and allowing it to be, eventually, garbage collected.
postMessage (message:Dynamic):VoidThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/BroadcastChannel.html