aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/websocket/url/index.md
blob: acaa13de14fb5a8460dba6f81dc9f98721478bef (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
---
title: WebSocket.url
slug: Web/API/WebSocket/url
browser-compat: api.WebSocket.url
---
<p>{{APIRef("Web Sockets API")}}</p>

<p>La propriété en lecture seule <strong><code>WebSocket.url</code></strong> renvoie l'URL absolue de la <a href="/fr/docs/Web/API/WebSocket"><code>WebSocket</code></a> telle que résolue par le constructeur.</p>

<h2 id="syntax">Syntaxe</h2>

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

<h2 id="value">Valeur</h2>

<p>Une chaîne de caractères <a href="/fr/docs/Web/API/DOMString"><code>DOMString</code></a>.</p>

<h2 id="specifications">Spécifications</h2>

<p>{{Specifications}}</p>

<h2 id="browser_compatibility">Compatibilité des navigateurs</h2>

<p>{{Compat}}</p>