aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/client/id/index.md
blob: 26e53d0cc272694e505c38c7f8ba931f4a98f439 (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
---
title: Client.id
slug: Web/API/Client/id
tags:
  - API
  - Client
  - Experimental
  - Propriété
  - Reference
  - Service Workers
  - ServiceWorkers
  - id
translation_of: Web/API/Client/id
---
{{SeeCompatTable}}{{APIRef("Service Workers API")}}

La propriété **`id`** (lecture seule) de l'interface {{domxref("Client")}} retourne l'identifiant universellement unique de l'objet {{domxref("Client")}}.

## Syntaxe

```js
var clientId = Client.id;
```

## Exemple

```js
TBD
```

## Spécifications

| Spécification                                                        | Statut                               | Commentaire         |
| -------------------------------------------------------------------- | ------------------------------------ | ------------------- |
| {{SpecName('Service Workers', '#client-id', 'id')}} | {{Spec2('Service Workers')}} | Initial definition. |

## Compatibilité des navigateurs

{{Compat("api.Client.id")}}