aboutsummaryrefslogtreecommitdiff
path: root/files/tr/web/api/websocket/onerror/index.html
blob: 62cc321a79b69c451c49e617ee1e1fc2f878cb39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: WebSocket.onerror
slug: Web/API/WebSocket/onerror
tags:
  - API
  - Web API
  - WebSocket
  - Özellik
translation_of: Web/API/WebSocket/onerror
---
<p>{{APIRef("Web Sockets API")}}</p>

<p><strong><code>WebSocket.onerror</code></strong> özelliği hata oluştuğunda çağırılan bir {{domxref("EventHandler")}}'dır. {{domxref("Event")}} ile birlikte çağırılır.</p>

<h2 id="Sözdizim">Sözdizim</h2>

<pre class="syntaxbox"><em>aWebSocket</em>.onerror = function(event) {
  console.error("WebSocket error observed:", event);
};</pre>

<h2 id="Değer">Değer</h2>

<p>Bir {{domxref("EventListener")}}.</p>

<h2 id="Belirtimler">Belirtimler</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Belirtim</th>
   <th scope="col">Durum</th>
   <th scope="col">Yorum</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', '#handler-websocket-onerror', 'WebSocket: onerror')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>İlk tanım</td>
  </tr>
 </tbody>
</table>

<h2 id="Tarayıcı_desteği">Tarayıcı desteği</h2>



<p>{{Compat("api.WebSocket.onerror")}}</p>