ladybird/Userland/Libraries/LibWeb/HTML/MessagePort.idl

19 lines
499 B
Plaintext
Raw Normal View History

#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
// https://html.spec.whatwg.org/multipage/web-messaging.html#messageport
[Exposed=(Window,Worker,AudioWorklet), Transferable]
interface MessagePort : EventTarget {
undefined postMessage(any message);
undefined start();
undefined close();
// event handlers
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
};
dictionary StructuredSerializeOptions {
sequence<object> transfer = [];
};