DedicatedWorkerGlobalScope.onmessageerror

The onmessageerror event handler of the DedicatedWorkerGlobalScope interface is an EventListener, called whenever an MessageEvent of type messageerror is fired on the worker—that is, when it receives a message that cannot be deserialized.

Note:

This feature is available in Web Workers.

Syntax

onmessageerror = function() { ... };

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'onmessageerror' in that specification.
Living Standard

Browser compatibility

BCD tables only load in the browser

See also