aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/messageport/onmessageerror/index.html
blob: 8265880f3b135a80a13d19b7cdb000cf011ed189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: MessagePort.onmessageerror
slug: Web/API/MessagePort/onmessageerror
tags:
  - API
  - Channel messaging
  - MessagePort
  - Property
  - Reference
  - events
  - onmessageerror
translation_of: Web/API/MessagePort/onmessageerror
---
<div>{{APIRef("HTML DOM")}}</div>

<p>{{domxref("MessagePort")}} インターフェースの <code><strong>onmessageerror</strong></code> イベントハンドラーは、ポートで <code>messageerror</code> 型の {{domxref("MessageEvent")}} が発火すると呼び出されます。つまり、{{glossary("Deserialization", "deserialized")}} できないメッセージを受け取ったときです。</p>

<p>{{AvailableInWorkers}}</p>

<h2 id="構文">構文</h2>

<pre class="syntaxbox">port.onmessageerror = function() { ... };</pre>

<h2 id="仕様">仕様</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">仕様</th>
   <th scope="col">ステータス</th>
   <th scope="col">コメント</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'web-messaging.html#handler-messageport-onmessageerror', 'onmessageerror')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td> </td>
  </tr>
 </tbody>
</table>

<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2>

<div>


<p>{{Compat("api.MessagePort.onmessageerror")}}</p>
</div>

<h2 id="関連項目">関連項目</h2>

<ul>
 <li><a href="/ja/docs/Web/API/Channel_Messaging_API/Using_channel_messaging">Using channel messaging</a></li>
</ul>