aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/websocket/onerror
diff options
context:
space:
mode:
Diffstat (limited to 'files/es/web/api/websocket/onerror')
-rw-r--r--files/es/web/api/websocket/onerror/index.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/files/es/web/api/websocket/onerror/index.html b/files/es/web/api/websocket/onerror/index.html
new file mode 100644
index 0000000000..69a523b1b6
--- /dev/null
+++ b/files/es/web/api/websocket/onerror/index.html
@@ -0,0 +1,50 @@
+---
+title: WebSocket.onerror
+slug: Web/API/WebSocket/onerror
+tags:
+ - API
+ - Error
+ - Propiedad
+ - Referencia
+ - Web API
+ - WebSocket
+translation_of: Web/API/WebSocket/onerror
+---
+<p>{{APIRef("Web Sockets API")}}</p>
+
+<p>La propiedad <strong><code>WebSocket.onerror</code></strong>, del tipo {{domxref("EventHandler")}}, 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>