]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | { |
2 | "domain": "Worker", | |
3 | "types": [], | |
4 | "availability": "web", | |
5 | "commands": [ | |
6 | { | |
7 | "name": "enable" | |
8 | }, | |
9 | { | |
10 | "name": "disable" | |
11 | }, | |
12 | { | |
13 | "name": "sendMessageToWorker", | |
14 | "parameters": [ | |
15 | { "name": "workerId", "type": "integer" }, | |
16 | { "name": "message", "type": "object" } | |
17 | ] | |
18 | }, | |
19 | { | |
20 | "name": "canInspectWorkers", | |
21 | "description": "Tells whether browser supports workers inspection.", | |
22 | "returns": [ | |
23 | { "name": "result", "type": "boolean", "description": "True if browser has workers support." } | |
24 | ] | |
25 | }, | |
26 | { | |
27 | "name": "connectToWorker", | |
28 | "parameters": [ | |
29 | { "name": "workerId", "type": "integer" } | |
30 | ] | |
31 | }, | |
32 | { | |
33 | "name": "disconnectFromWorker", | |
34 | "parameters": [ | |
35 | { "name": "workerId", "type": "integer" } | |
36 | ] | |
37 | }, | |
38 | { | |
39 | "name": "setAutoconnectToWorkers", | |
40 | "parameters": [ | |
41 | { "name": "value", "type": "boolean" } | |
42 | ] | |
43 | } | |
44 | ], | |
45 | "events": [ | |
46 | { | |
47 | "name": "workerCreated", | |
48 | "parameters": [ | |
49 | { "name": "workerId", "type": "integer" }, | |
50 | { "name": "url", "type": "string" }, | |
51 | { "name": "inspectorConnected", "type": "boolean" } | |
52 | ] | |
53 | }, | |
54 | { | |
55 | "name": "workerTerminated", | |
56 | "parameters": [ | |
57 | { "name": "workerId", "type": "integer" } | |
58 | ] | |
59 | }, | |
60 | { | |
61 | "name": "dispatchMessageFromWorker", | |
62 | "parameters": [ | |
63 | { "name": "workerId", "type": "integer" }, | |
64 | { "name": "message", "type": "object" } | |
65 | ] | |
66 | }, | |
67 | { | |
68 | "name": "disconnectedFromWorker" | |
69 | } | |
70 | ] | |
71 | } |