mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Add logging for ICE failed
This commit is contained in:
parent
ca9a5566af
commit
b65dab968e
1 changed files with 5 additions and 1 deletions
|
@ -244,7 +244,7 @@ class RTCPeer extends Peer {
|
||||||
this._conn = new RTCPeerConnection(RTCPeer.config);
|
this._conn = new RTCPeerConnection(RTCPeer.config);
|
||||||
this._conn.onicecandidate = e => this._onIceCandidate(e);
|
this._conn.onicecandidate = e => this._onIceCandidate(e);
|
||||||
this._conn.onconnectionstatechange = e => this._onConnectionStateChange(e);
|
this._conn.onconnectionstatechange = e => this._onConnectionStateChange(e);
|
||||||
this._conn.oniceconnectionstatechange = e => console.log(e);
|
this._conn.oniceconnectionstatechange = e => this._onIceConnectionStateChange(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
_openChannel() {
|
_openChannel() {
|
||||||
|
@ -306,6 +306,10 @@ class RTCPeer extends Peer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_onIceConnectionStateChange(){
|
||||||
|
console.log('IceConnectionStateChange',this._conn.iceConnectionState);
|
||||||
|
}
|
||||||
|
|
||||||
_onError(error) {
|
_onError(error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue