{"json_modified": "2016-03-28T08:42:45.776840", "uuid": "487b17b1-c61e-41c8-a31b-5fd90afd06b8", "title": "DedicatedWorkerGlobalScope.postMessage()", "url": "/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage", "tags": ["API", "Reference", "DedicatedWorkerGlobalScope", "R\u00e9f\u00e9rence", "postMessage", "Web Workers", "Method"], "translations": [], "modified": "2015-02-21T08:49:38", "label": "DedicatedWorkerGlobalScope.postMessage()", "localization_tags": [], "locale": "en-US", "id": 135069, "last_edit": "2015-02-21T08:49:26", "summary": "The postMessage()
method of the DedicatedWorkerGlobalScope
interface sends a message to the main thread that spawned it. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Returns", "title": "Returns"}, {"id": "Example", "title": "Example"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/DedicatedWorkerGlobalScope/postMessage", "review_tags": []}