I am confused about the values in connectionState. This API seems to be missing in both Firefox (60.0b10) and Chrome (65.0.3325.181) where I tried it, but according to the tables should be there.
new RTCPeerConnection().connectionState // undefined
new RTCPeerConnection() // connectionState is missing
Am I missing something (field only appers during established connection or something) or is this wrong?
@a2sheppy could you help to fix this WebRTC compat data question?
@TomasHubelbauer You can use RTCPeerConnection.iceConnectionState to achieve the same thing.
I am curious about whether this is a field which according to spec should exist or a mistake, I noticed it by chance, not by working on a WebRTC application. But good tip for people who may be brought here by Google. 馃檱
This was fixed in https://github.com/mdn/browser-compat-data/pull/2815
Most helpful comment
@TomasHubelbauer You can use
RTCPeerConnection.iceConnectionStateto achieve the same thing.