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/es/web/api/websocket/error_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/es/web/api/websocket/error_event/index.html')
| -rw-r--r-- | files/es/web/api/websocket/error_event/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/files/es/web/api/websocket/error_event/index.html b/files/es/web/api/websocket/error_event/index.html new file mode 100644 index 0000000000..b3e68f3274 --- /dev/null +++ b/files/es/web/api/websocket/error_event/index.html @@ -0,0 +1,51 @@ +--- +title: WebSocket.onerror +slug: Web/API/WebSocket/error_event +tags: + - API + - Error + - Propiedad + - Referencia + - Web API + - WebSocket +translation_of: Web/API/WebSocket/onerror +original_slug: Web/API/WebSocket/onerror +--- +<p>{{APIRef("Web Sockets API")}}</p> + +<p>La propiedad <strong><code>WebSocket.onerror</code></strong>, del tipo {{event("Event_handlers", "event handler")}}, será llamada cuando se dé un error. Esta llamada recibirá un tipo {{domxref("Event")}} como argumento.</p> + +<h2 id="Sintaxis">Sintaxis</h2> + +<pre class="syntaxbox"><em>aWebSocket</em>.onerror = function(event) { + console.error("Error en el WebSocket detectado:", event); +};</pre> + +<h2 id="Valor">Valor</h2> + +<p>Un {{domxref("EventListener")}}.</p> + +<h2 id="Especificaciones">Especificaciones</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Especificación</th> + <th scope="col">Estado</th> + <th scope="col">Comentarios</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', '#handler-websocket-onerror', 'WebSocket: onerror')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Definición inicial.</td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilidad_con_navegadores">Compatibilidad con navegadores</h2> + + + +<p>{{Compat("api.WebSocket.onerror")}}</p> |
