#pattern
* Communication
#ja
$1 通信
#pattern
* Event definitions
#ja
$1 事象定義
#en
Messages in server-sent events, Web sockets, cross-document messaging, and channel messaging use the message event.
#ja
鯖送信事象、Web ソケット、文書間メッセージ交換、通信路メッセージ交換のメッセージはmessage 事象を使います。
#en
The following interface is defined for this event:
#ja
次の界面はこの事象のために定義されています。
#pattern
The *()
and *()
methods must initialise the event in a manner analogous to the
similarly-named methods in the DOM3 Events interfaces. [DOM3EVENTS]
#ja
$3()
メソッドと initMessageEventNS()
メソッドは、 DOM3 事象界面の似たような名前のメソッドと同じような方法で事象を初期化しなければ[[MUST:なりません]]。
[DOM3EVENTS]
#en
The data
attribute represents the message being sent.
#ja
data
属性は送信されたメッセージを表します。
#en
The origin attribute
represents, in server-sent events and cross-document messaging, the origin of the document that sent the message
(typically the scheme, hostname, and port of the document, but not its
path or fragment identifier).
#ja
origin
属性は、 鯖送信事象と文書間メッセージ交換において、メッセージを送信した文書の起源
(普通は当該文書の scheme と hostname と port で、 path や素片識別子は含みません。)
を表します。
#en
The lastEventId
attribute represents, in server-sent events,
the last event ID string of the event source.
#ja
lastEventId
属性は、鯖送信事象において、
事象源の最終事象識別子文字列を表します。
#en
The source attribute
represents, in cross-document messaging, the
Window from which the message came.
#ja
source 属性は、
文書間メッセージ交換において、
メッセージが送られて来た元の
Window を表します。