Browser-compat-data: RTCPeerConnection.connectionState

Created on 7 Apr 2018  路  4Comments  路  Source: mdn/browser-compat-data

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?

data

Most helpful comment

@TomasHubelbauer You can use RTCPeerConnection.iceConnectionState to achieve the same thing.

All 4 comments

@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. 馃檱

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ddbeck picture ddbeck  路  3Comments

RobPethick picture RobPethick  路  3Comments

ExE-Boss picture ExE-Boss  路  3Comments

ddbeck picture ddbeck  路  3Comments

connorshea picture connorshea  路  3Comments