/
index.md
47 lines (34 loc) · 1.34 KB
/
index.md
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
---
title: "RTCDtlsTransport: state property"
short-title: state
slug: Web/API/RTCDtlsTransport/state
page-type: web-api-instance-property
browser-compat: api.RTCDtlsTransport.state
---
{{APIRef("WebRTC")}}
The **`state`** read-only property of the
{{DOMxRef("RTCDtlsTransport")}} interface provides information which describes a
Datagram Transport Layer Security (**{{Glossary("DTLS")}}**) transport state.
## Value
A string. Its value is one of the following:
- `new`
- : The initial state when DTLS has not started negotiating yet.
- `connecting`
- : DTLS is in the process of negotiating a secure connection and verifying the remote fingerprint.
- `connected`
- : DTLS has completed negotiation of a secure connection and verified the remote fingerprint.
- `closed`
- : The transport has been closed intentionally as the result of receipt of a
`close_notify` alert, or calling {{DOMxRef("RTCPeerConnection.close()")}}.
- `failed`
- : The transport has failed as the result of an error (such as receipt of an error
alert or failure to validate the remote fingerprint).
## Examples
See [`RTCDtlsTransport`](/en-US/docs/Web/API/RTCDtlsTransport#examples) for example code.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- [WebRTC API](/en-US/docs/Web/API/WebRTC_API)
- {{DOMxRef("RTCDtlsTransport")}}