2022-02-15 22:10:51 +03:00
|
|
|
#import <DOM/EventTarget.idl>
|
2022-03-30 23:35:42 +03:00
|
|
|
#import <DOM/EventHandler.idl>
|
2022-02-15 22:10:51 +03:00
|
|
|
|
2022-10-08 01:45:09 +03:00
|
|
|
// https://html.spec.whatwg.org/multipage/web-messaging.html#messageport
|
|
|
|
[Exposed=(Window,Worker,AudioWorklet), Transferable]
|
2021-09-19 23:12:31 +03:00
|
|
|
interface MessagePort : EventTarget {
|
|
|
|
undefined postMessage(any message);
|
|
|
|
undefined start();
|
|
|
|
undefined close();
|
|
|
|
|
2023-03-07 21:21:49 +03:00
|
|
|
// event handlers
|
2021-09-19 23:12:31 +03:00
|
|
|
attribute EventHandler onmessage;
|
|
|
|
attribute EventHandler onmessageerror;
|
2023-03-07 21:21:49 +03:00
|
|
|
};
|
2021-09-19 23:12:31 +03:00
|
|
|
|
2023-03-07 21:21:49 +03:00
|
|
|
dictionary StructuredSerializeOptions {
|
|
|
|
sequence<object> transfer = [];
|
2021-09-19 23:12:31 +03:00
|
|
|
};
|