files/en-us/web/api/rtcdtlstransport/state/index.md
{{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.
A string. Its value is one of the following:
new
connecting
connected
closed
close_notify alert, or calling {{DOMxRef("RTCPeerConnection.close()")}}.failed
See RTCDtlsTransport for example code.
{{Specifications}}
{{Compat}}