diff options
| author | MDN <actions@users.noreply.github.com> | 2021-12-16 00:52:08 +0000 |
|---|---|---|
| committer | MDN <actions@users.noreply.github.com> | 2021-12-16 00:52:08 +0000 |
| commit | 9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda (patch) | |
| tree | 513e8e35a07a3fd1dc45a5415425fd3780075d51 /files/ja/conflicting/web/api/websocket/message_event/index.html | |
| parent | 7f7c1b96a524c16de813516cc1b7ed3b773ae7ad (diff) | |
| download | translated-content-9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda.tar.gz translated-content-9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda.tar.bz2 translated-content-9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda.zip | |
[CRON] sync translated content
Diffstat (limited to 'files/ja/conflicting/web/api/websocket/message_event/index.html')
| -rw-r--r-- | files/ja/conflicting/web/api/websocket/message_event/index.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/files/ja/conflicting/web/api/websocket/message_event/index.html b/files/ja/conflicting/web/api/websocket/message_event/index.html new file mode 100644 index 0000000000..e1888a6245 --- /dev/null +++ b/files/ja/conflicting/web/api/websocket/message_event/index.html @@ -0,0 +1,49 @@ +--- +title: WebSocket.onmessage +slug: conflicting/Web/API/WebSocket/message_event +tags: + - API + - Property + - Reference + - Web API + - WebSocket + - プロパティ +translation_of: Web/API/WebSocket/onmessage +original_slug: Web/API/WebSocket/onmessage +--- +<div>{{APIRef("Web Sockets API")}}</div> + +<p><strong><code>WebSocket.onmessage</code></strong> プロパティは、サーバーからメッセージが届いたときに呼び出されるイベントハンドラー ({{event("Event_handlers", "event handler")}}) です。これは {{domxref("MessageEvent")}} で呼び出されます。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>aWebSocket</em>.onmessage = function(event) { + console.debug("WebSocket message received:", event); +};</pre> + +<h2 id="Value" name="Value">値</h2> + +<p>{{domxref("EventListener")}} です。</p> + +<h2 id="Specifications" name="Specifications">仕様書</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">仕様書</th> + <th scope="col">状態</th> + <th scope="col">備考</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', '#handler-websocket-onmessage', 'WebSocket: onmessage')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + +<p>{{Compat("api.WebSocket.onmessage")}}</p> |
