The onmessageerror
event handler of the BroadcastChannel
interface is an EventListener
, called whenever an MessageEvent
of type messageerror
is fired on the BroadcastChannel
instance — that is, when it receives a message that cannot be deserialized.
Note: This feature is available in Web Workers.
Syntax
bc.onmessageerror = function() { ... };
Specifications
Specification | Status | Comment |
HTML Living StandardThe definition of 'onmessageerror' in that specification. | Living Standard |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
onmessageerror
|
Chrome
Full support 60 |
Edge
Full support ≤79 |
Firefox
Full support 57 |
IE
No support No |
Opera
Full support 47 |
Safari
No support No |
WebView Android
Full support 60 |
Chrome Android
Full support 60 |
Firefox Android
? |
Opera Android
Full support 44 |
Safari iOS
No support No |
Samsung Internet Android
Full support 8.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
See also
BroadcastChannel.onmessageerror by Mozilla Contributors is licensed under CC-BY-SA 2.5.