Frumba
Frumba

Reputation: 175

WebRTC handle peerConnection error

I was wondering if there is way to check when peerConnection fail to connect to the STUN server?

Upvotes: 1

Views: 549

Answers (1)

Sam Dutton
Sam Dutton

Reputation: 15279

As I understand it, there's no direct way to do this.

However, if you pass in a STUN server and then don't get any STUN candidates during the gathering process (and your local candidates are nonroutable), that means the STUN server couldn't be contacted.

Upvotes: 2

Related Questions