#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 を表します。 #en The messagePort attribute represents, in cross-document messaging and channel messaging the MessagePort being sent, if any. #ja messagePort 属性は、文書間メッセージ交換通信路メッセージ交換において、 送信された MessagePort があれば、 それを表します。 #en Unless otherwise specified, when the user agent creates and dispatches a message event in the algorithms described in the following sections, the lastEventId attribute must be the empty string, the origin attribute must be the empty string, the source attribute must be null, and the messagePort attribute must be null. #ja 特に規定がない場合、利用者エージェントが以後の節で説明する算法の中で message 事象を作成して発送する時に、 lastEventId 属性は空文字列でなければ[[MUST:ならず]]、 origin 属性は空文字列でなければ[[MUST:ならず]]、 source 属性は null でなければ[[MUST:ならず]]、 messagePort 属性は null でなければ[[MUST:なりません]]。