aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/websocket/url/index.md
blob: 57e7c95c6281c6343b7f47ad528fb8cf4f7c7e08 (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
---
{{APIRef("Web Sockets API")}}

La propriété en lecture seule **`WebSocket.url`** renvoie l'URL absolue de la [`WebSocket`](/fr/docs/Web/API/WebSocket) telle que résolue par le constructeur.

## Syntaxe

```js
var url = aWebSocket.url;
```

## Valeur

Une chaîne de caractères [`DOMString`](/fr/docs/Web/API/DOMString).

## Spécifications

{{Specifications}}

## Compatibilité des navigateurs

{{Compat}}