| 1 |
apache |
1.2 |
|
| 2 |
|
|
|
| 3 |
|
|
#pattern |
| 4 |
|
|
<span class=secno>* </span>Communication |
| 5 |
|
|
#ja |
| 6 |
apache |
1.3 |
<span class=secno>$1 </span>通信 |
| 7 |
|
|
|
| 8 |
|
|
#pattern |
| 9 |
|
|
<span class=secno>* </span>Event definitions |
| 10 |
|
|
#ja |
| 11 |
apache |
1.4 |
<span class=secno>$1 </span>事象定義 |
| 12 |
|
|
|
| 13 |
|
|
#en |
| 14 |
|
|
Messages in <a href="#server-sent">server-sent events</a>, <a
|
| 15 |
|
|
href="#web-sockets">Web sockets</a>, <a
|
| 16 |
|
|
href="#cross-document">cross-document messaging</a>, and <a
|
| 17 |
|
|
href="#channel0">channel messaging</a> use the <dfn id=message2
|
| 18 |
|
|
title=event-message><code>message</code></dfn> event. |
| 19 |
|
|
#ja |
| 20 |
|
|
<a href="#server-sent">鯖送信事象</a>、<a
|
| 21 |
|
|
href="#web-sockets">Web ソケット</a>、<a
|
| 22 |
|
|
href="#cross-document">文書間メッセージ交換</a>、<a
|
| 23 |
|
|
href="#channel0">通信路メッセージ交換</a>のメッセージは<dfn id=message2
|
| 24 |
apache |
1.5 |
title=event-message><code>message</code></dfn> 事象を使います。 |
| 25 |
|
|
|
| 26 |
|
|
#en |
| 27 |
|
|
The following interface is defined for this event: |
| 28 |
|
|
#ja |
| 29 |
apache |
1.6 |
次の界面はこの事象のために定義されています。 |
| 30 |
|
|
|
| 31 |
|
|
#pattern |
| 32 |
|
|
The <dfn id=*
|
| 33 |
|
|
title=dom-*><code>*()</code></dfn>
|
| 34 |
|
|
and <dfn id=*
|
| 35 |
|
|
title=dom-*><code>*()</code></dfn>
|
| 36 |
|
|
methods must initialise the event in a manner analogous to the
|
| 37 |
|
|
similarly-named methods in the DOM3 Events interfaces. <a
|
| 38 |
|
|
href="#refsDOM3EVENTS">[DOM3EVENTS]</a> |
| 39 |
|
|
#ja |
| 40 |
|
|
<dfn id=$1
|
| 41 |
|
|
title=dom-$2><code>$3()</code></dfn>
|
| 42 |
|
|
メソッドと <dfn id=$4
|
| 43 |
|
|
title=dom-$5><code>initMessageEventNS()</code></dfn>
|
| 44 |
|
|
メソッドは、 DOM3 事象界面の似たような名前のメソッドと同じような方法で事象を初期化しなければ[[MUST:なりません]]。
|
| 45 |
|
|
<a
|
| 46 |
apache |
1.7 |
href="#refsDOM3EVENTS">[DOM3EVENTS]</a> |
| 47 |
|
|
|
| 48 |
|
|
#en |
| 49 |
|
|
The <dfn id=data4 title=dom-MessageEvent-data><code>data</code></dfn>
|
| 50 |
|
|
attribute represents the message being sent. |
| 51 |
|
|
#ja |
| 52 |
|
|
<dfn id=data4 title=dom-MessageEvent-data><code>data</code></dfn>
|
| 53 |
apache |
1.8 |
属性は送信されたメッセージを表します。 |
| 54 |
|
|
|
| 55 |
|
|
#en |
| 56 |
|
|
The <dfn id=origin1
|
| 57 |
|
|
title=dom-MessageEvent-origin><code>origin</code></dfn> attribute
|
| 58 |
|
|
represents, in <a href="#server-sent">server-sent events</a> and <a
|
| 59 |
|
|
href="#cross-document">cross-document messaging</a>, the <a
|
| 60 |
|
|
href="#origin0">origin</a> of the document that sent the message
|
| 61 |
|
|
(typically the scheme, hostname, and port of the document, but not its
|
| 62 |
|
|
path or fragment identifier). |
| 63 |
|
|
#ja |
| 64 |
|
|
<dfn id=origin1
|
| 65 |
|
|
title=dom-MessageEvent-origin><code>origin</code></dfn>
|
| 66 |
|
|
属性は、 <a href="#server-sent">鯖送信事象</a>と<a
|
| 67 |
|
|
href="#cross-document">文書間メッセージ交換</a>において、メッセージを送信した文書の<a
|
| 68 |
|
|
href="#origin0">起源</a>
|
| 69 |
|
|
(普通は当該文書の scheme と hostname と port で、 path や素片識別子は含みません。)
|
| 70 |
apache |
1.9 |
を表します。 |
| 71 |
|
|
|
| 72 |
|
|
#en |
| 73 |
|
|
The <dfn id=lasteventid
|
| 74 |
|
|
title=dom-MessageEvent-lastEventId><code>lastEventId</code></dfn>
|
| 75 |
|
|
attribute represents, in <a href="#server-sent">server-sent events</a>,
|
| 76 |
|
|
the <span>last event ID string</span> of the event source. |
| 77 |
|
|
#ja |
| 78 |
|
|
<dfn id=lasteventid
|
| 79 |
|
|
title=dom-MessageEvent-lastEventId><code>lastEventId</code></dfn>
|
| 80 |
|
|
属性は、<a href="#server-sent">鯖送信事象</a>において、
|
| 81 |
apache |
1.10 |
事象源の<span>最終事象識別子文字列</span>を表します。 |
| 82 |
|
|
|
| 83 |
|
|
#en |
| 84 |
|
|
The <dfn id=source3
|
| 85 |
|
|
title=dom-MessageEvent-source><code>source</code></dfn> attribute
|
| 86 |
|
|
represents, in <a href="#cross-document">cross-document messaging</a>, the
|
| 87 |
|
|
<code><a href="#window">Window</a></code> from which the message came. |
| 88 |
|
|
#ja |
| 89 |
|
|
<dfn id=source3
|
| 90 |
|
|
title=dom-MessageEvent-source><code>source</code></dfn> 属性は、
|
| 91 |
|
|
<a href="#cross-document">文書間メッセージ交換</a>において、
|
| 92 |
|
|
メッセージが送られて来た元の
|
| 93 |
apache |
1.11 |
<code><a href="#window">Window</a></code> を表します。 |
| 94 |
|
|
|
| 95 |
|
|
#en |
| 96 |
|
|
The <dfn id=messageport
|
| 97 |
|
|
title=dom-MessageEvent-messagePort><code>messagePort</code></dfn>
|
| 98 |
|
|
attribute represents, in <a href="#cross-document">cross-document
|
| 99 |
|
|
messaging</a> and <a href="#channel0">channel messaging</a> the <code><a
|
| 100 |
|
|
href="#messageport0">MessagePort</a></code> being sent, if any. |
| 101 |
|
|
#ja |
| 102 |
|
|
<dfn id=messageport
|
| 103 |
|
|
title=dom-MessageEvent-messagePort><code>messagePort</code></dfn>
|
| 104 |
|
|
属性は、<a href="#cross-document">文書間メッセージ交換</a>と<a href="#channel0">通信路メッセージ交換</a>において、
|
| 105 |
|
|
送信された <code><a
|
| 106 |
|
|
href="#messageport0">MessagePort</a></code> があれば、
|
| 107 |
|
|
それを表します。
|