mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
19 lines
616 B
Text
19 lines
616 B
Text
#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, sequence<object> transfer);
|
|
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
|
|
undefined start();
|
|
undefined close();
|
|
|
|
// event handlers
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
dictionary StructuredSerializeOptions {
|
|
sequence<object> transfer = [];
|
|
};
|