{"json_modified": "2016-03-28T08:29:27.682017", "uuid": "aebabcef-b883-482b-9e1d-a65bfdb1fbb9", "title": "Worker.onmessage", "url": "/en-US/docs/Web/API/Worker/onmessage", "tags": ["Worker", "API", "EventHandler", "onmessage", "Reference", "Property", "R\u00e9f\u00e9rence", "Web Workers"], "translations": [{"uuid": "7b673b02-a5e4-4288-975b-def8b7f74a17", "title": "Worker.onmessage", "url": "/fr/docs/Web/API/Worker/onmessage", "tags": ["Reference", "API", "Property"], "summary": "La propri\u00e9t\u00e9 onmessage
de l'interface Worker
repr\u00e9sente un EventHandler
, \u00e0 savoir une fonction qui est appel\u00e9e lorsque l'\u00e9v\u00e9nement message
survient. Ces \u00e9v\u00e9nements sont du type MessageEvent
et sont appel\u00e9s quand le parent du worker re\u00e7oit un message (c\u2019est-\u00e0-dire \u00e0 partir de la m\u00e9thode DedicatedWorkerGlobalScope.postMessage
.)", "localization_tags": [], "locale": "fr", "last_edit": "2015-06-15T12:29:49", "review_tags": []}, {"uuid": "31aa1a53-0e88-489d-91de-b9094ddb578b", "title": "Worker.onmessage", "url": "/ru/docs/Web/API/Worker/onmessage", "tags": [], "summary": "\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u00a0onmessage
\u00a0\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u00a0Worker
\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a EventHandler
, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 message
. \u0422\u0438\u043f \u044d\u0442\u043e\u0433\u043e\u00a0\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u00a0MessageEvent
\u0438 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u043e\u00a0\u043a\u043e\u0433\u0434\u0430 worker-\u043e\u0431\u044a\u0435\u043a\u0442\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u00a0\u0438\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0438\u043c \u043a\u043e\u0434\u0430\u00a0(\u0442.\u0435 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u0430\u00a0DedicatedWorkerGlobalScope.postMessage
\u00a0.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-11-29T23:33:38", "review_tags": ["technical", "editorial"]}], "modified": "2015-02-22T16:25:29", "label": "Worker.onmessage", "localization_tags": [], "locale": "en-US", "id": 82235, "last_edit": "2015-02-22T16:21:09", "summary": "The onmessage
property of the Worker
interface represents an EventHandler
, that is a function to be called when the message
event occurs. These events are of type MessageEvent
and will be called when the worker's parent receives a message (i.e. from the DedicatedWorkerGlobalScope.postMessage
method.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Example", "title": "Example"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/Worker/onmessage", "review_tags": []}