ladybird/Libraries/LibWeb/HTML/BroadcastChannel.idl

15 lines
429 B
Text
Raw Normal View History

#import <DOM/EventHandler.idl>
#import <DOM/EventTarget.idl>
// https://html.spec.whatwg.org/multipage/web-messaging.html#broadcastchannel
[Exposed=(Window,Worker)]
interface BroadcastChannel : EventTarget {
constructor(DOMString name);
readonly attribute DOMString name;
undefined postMessage(any message);
undefined close();
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
};