summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Worker.idl
blob: 73687379a10f50895c1b8d02bb2616369fcb97e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Exposed=(Window)]
interface Worker : EventTarget {
    constructor(DOMString scriptURL, optional WorkerOptions options = {});

    undefined terminate();
    undefined postMessage(any message, optional any transfer);

    attribute EventHandler onmessage;
    attribute EventHandler onmessageerror;
};

dictionary WorkerOptions {
    USVString type = "classic";
    USVString credentials = "same-origin";
    DOMString name = "";
};