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 | |
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')
4 files changed, 196 insertions, 0 deletions
diff --git a/files/ja/conflicting/web/api/websocket/close_event/index.html b/files/ja/conflicting/web/api/websocket/close_event/index.html new file mode 100644 index 0000000000..79582e481c --- /dev/null +++ b/files/ja/conflicting/web/api/websocket/close_event/index.html @@ -0,0 +1,38 @@ +--- +title: WebSocket.onclose +slug: conflicting/Web/API/WebSocket/close_event +translation_of: Web/API/WebSocket/onclose +original_slug: Web/API/WebSocket/onclose +--- +<p>{{APIRef("Web Sockets API")}}</p> + +<p><code><strong>WebSocket.onclose</strong></code> プロパティは、WebSocket コネクションの {{domxref("WebSocket.readyState","readyState")}} が {{domxref("WebSocket.readyState","CLOSED")}} に変わったときに呼ばれる {{event("Event_handlers", "event handler")}} です。{{domxref("CloseEvent")}} と一緒に呼び出されます。</p> + +<h2 id="構文">構文</h2> + +<pre class="syntaxbox notranslate"><em>aWebSocket</em>.onclose = function(event) { + console.log("WebSocket is closed now."); +};</pre> + +<h2 id="値">値</h2> + +<p>{{domxref("EventListener")}}.</p> + +<h2 id="仕様書">仕様書</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', '#handler-websocket-onclose', 'WebSocket: onclose')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> diff --git a/files/ja/conflicting/web/api/websocket/error_event/index.html b/files/ja/conflicting/web/api/websocket/error_event/index.html new file mode 100644 index 0000000000..d208a820c6 --- /dev/null +++ b/files/ja/conflicting/web/api/websocket/error_event/index.html @@ -0,0 +1,60 @@ +--- +title: WebSocket.onerror +slug: conflicting/Web/API/WebSocket/error_event +tags: + - API + - Connection + - Error + - Error Handler + - Networking + - Property + - Reference + - Web API + - WebSocket + - onerror + - プロパティ +translation_of: Web/API/WebSocket/onerror +original_slug: Web/API/WebSocket/onerror +--- +<div>{{APIRef("Web Sockets API")}}</div> + +<p><span class="seoSummary">{{domxref("WebSocket")}} インターフェイスの <code><strong>onerror</strong></code> イベントハンドラープロパティは、 WebSocket でエラーが発生したときに呼び出される関数です。</span></p> + +<p><code>error</code> イベントハンドラーは {{domxref("EventTarget.addEventListener", "addEventListener()")}} で追加することもできます。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><em>webSocket</em>.onerror = <em>eventHandler</em>;</pre> + +<h3 id="Value" name="Value">値</h3> + +<p>関数または {{event("Event_handlers", "event handler")}} で、 WebSocket コネクションで <code>error</code> イベントが発生するたびに呼び出されるものです。</p> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js"><em>webSocket</em>.onerror = function(event) { + console.error("WebSocket error observed:", event); +};</pre> + +<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-onerror', 'WebSocket: onerror')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + +<p>{{Compat("api.WebSocket.onerror")}}</p> 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> diff --git a/files/ja/conflicting/web/api/websocket/open_event/index.html b/files/ja/conflicting/web/api/websocket/open_event/index.html new file mode 100644 index 0000000000..451ad8d6b6 --- /dev/null +++ b/files/ja/conflicting/web/api/websocket/open_event/index.html @@ -0,0 +1,49 @@ +--- +title: WebSocket.onopen +slug: conflicting/Web/API/WebSocket/open_event +tags: + - API + - Property + - Reference + - Web API + - WebSocket + - プロパティ +translation_of: Web/API/WebSocket/onopen +original_slug: Web/API/WebSocket/onopen +--- +<div>{{APIRef("Web Sockets API")}}</div> + +<p><strong><code>WebSocket.onopen</code></strong> プロパティはイベントハンドラー ({{event("Event_handlers", "event handler")}}) で、 {{domxref("WebSocket")}} のコネクションの {{domxref("WebSocket.readyState","readyState")}} が {{domxref("WebSocket.readyState","1")}} に変化したときに呼び出されます。これは、コネクションでデータを送信したり受信したりする準備ができたことを示します。これは {{domxref("Event")}} を伴って呼び出されます。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>aWebSocket</em>.onopen = function(event) { + console.log("WebSocket is open now."); +};</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-onopen', 'WebSocket: onopen')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + +<p>{{Compat("api.WebSocket.onopen")}}</p> |