-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
40 lines (33 loc) · 1.33 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
---
title: "RTCIceCandidatePairStats: writable property"
short-title: writable
slug: Web/API/RTCIceCandidatePairStats/writable
page-type: web-api-instance-property
status:
- deprecated
- non-standard
browser-compat: api.RTCIceCandidatePairStats.writable
---
{{APIRef("WebRTC")}}{{Deprecated_Header}}{{Non-standard_Header}}
The _obsolete_ {{domxref("RTCIceCandidatePairStats")}}
property **`writable`** reports whether or not the connection
described by the candidate pair is writable.
## Value
A Boolean value which is `true` if the connection described by this
candidate pair has received acknowledgement of receipt (ACK) for at least one ICE
request _and_ that {{Glossary("STUN")}} consent hasn't expired.
> **Note:** This property was removed from the specification in early 2017
> because you can determine whether or not an incoming ICE request is available to read
> by checking to see if {{domxref("RTCIceCandidatePairStats.responsesReceived", "responsesReceived")}} is greater than 0 and that the time specified by
> {{domxref("RTCIceCandidatePairStats.consentExpiredTimestamp", "consentExpiredTimestamp")}} has not passed:
>
> ```js
> if (
> icpStats.responsesReceived > 0 &&
> icpStats.consentExpiredTimestamp < performance.now()
> ) {
> /* at least one ICE response has been received */
> }
> ```
## Browser compatibility
{{Compat}}