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

Note: This feature is available in Web Workers.


port.onmessageerror = function() { ... };


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

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 60 ? 57 (57) ? 47 ?
Available in workers 60 ? 57 (57) ? 47 ?
Feature Android Webview Chrome for Android Edge Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 60 60 ? 57.0 (57) ? ? 47 ?
Available in workers 60 60 ? 57.0 (57) ? ? 47 ?

See also

Document Tags and Contributors

Contributors to this page: chrisdavidmills, jpmedley
Last updated by: chrisdavidmills,