Procházet zdrojové kódy

Add logging for ICE failed

RobinLinus před 6 roky
rodič
revize
ca9a5566af
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      client/scripts/network.js

+ 1 - 0
client/scripts/network.js

@@ -244,6 +244,7 @@ class RTCPeer extends Peer {
         this._conn = new RTCPeerConnection(RTCPeer.config);
         this._conn.onicecandidate = e => this._onIceCandidate(e);
         this._conn.onconnectionstatechange = e => this._onConnectionStateChange(e);
+        this._conn.oniceconnectionstatechange = e => console.log(e);
     }
 
     _openChannel() {