aboutsummaryrefslogtreecommitdiff
path: root/files/tr/web/api/websocket/protocol/index.html
blob: d3a466d14b574466f5c04fc657cbb8ccbe9a91ad (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
---
title: WebSocket.protocol
slug: Web/API/WebSocket/protocol
tags:
  - API
  - Web API
  - WebSocket
  - Özellik
translation_of: Web/API/WebSocket/protocol
---
<p>{{APIRef("Web Sockets API")}}</p>

<p>Salt-okunur <strong><code>WebSocket.protocol</code></strong> özelliği sunucunun seçtiği alt-protokolü verir. Bu değer {{domxref("WebSocket")}} objesi oluşturulurken belirtilen <code>protocols</code> dizisidir.</p>

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

<pre class="brush: js">var protocol = <em>aWebSocket</em>.protocol;</pre>

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

<p>Bir <a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMString" title="DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String."><code>DOMString</code></a>.</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', '#dom-websocket-protocol', 'WebSocket: protocol')}}</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.protocol")}}</p>