diff options
Diffstat (limited to 'Source/JavaScriptCore/inspector/protocol/Worker.json')
-rw-r--r-- | Source/JavaScriptCore/inspector/protocol/Worker.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/inspector/protocol/Worker.json b/Source/JavaScriptCore/inspector/protocol/Worker.json new file mode 100644 index 000000000..a57fac08f --- /dev/null +++ b/Source/JavaScriptCore/inspector/protocol/Worker.json @@ -0,0 +1,52 @@ +{ + "domain": "Worker", + "availability": "web", + "types": [], + "commands": [ + { + "name": "enable", + "description": "Enable Worker domain events." + }, + { + "name": "disable", + "description": "Disable Worker domain events." + }, + { + "name": "initialized", + "description": "Sent after the frontend has sent all initialization messages and can resume this worker. This command is required to allow execution in the worker.", + "parameters": [ + { "name": "workerId", "type": "string" } + ] + }, + { + "name": "sendMessageToWorker", + "description": "Send an Inspector Protocol message to be dispatched to a Worker's agents.", + "parameters": [ + { "name": "workerId", "type": "string" }, + { "name": "message", "type": "string", "description": "JSON Inspector Protocol message (command) to be dispatched on the backend." } + ] + } + ], + "events": [ + { + "name": "workerCreated", + "parameters": [ + { "name": "workerId", "type": "string" }, + { "name": "url", "type": "string" } + ] + }, + { + "name": "workerTerminated", + "parameters": [ + { "name": "workerId", "type": "string" } + ] + }, + { + "name": "dispatchMessageFromWorker", + "parameters": [ + { "name": "workerId", "type": "string" }, + { "name": "message", "type": "string", "description": "JSON Inspector Protocol message (response or event) to be dispatched on the frontend." } + ] + } + ] +} |