From ca9a5566af04acf0d32a4802def98b7de7bfc39e Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Tue, 25 Sep 2018 18:53:12 +0200 Subject: [PATCH] Add logging for ICE failed --- client/scripts/network.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/scripts/network.js b/client/scripts/network.js index 9c4802c..776325a 100644 --- a/client/scripts/network.js +++ b/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() {