summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/MessagePort.idl
blob: 38b436c2da05a70392456c4a86862b985f97a77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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();

    attribute EventHandler onmessage;
    attribute EventHandler onmessageerror;

};