teleportxr 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ const EventEmitter = require('events');
|
|
|
4
4
|
const wrtc =require('@roamhq/wrtc');
|
|
5
5
|
const DefaultRTCPeerConnection = require('@roamhq/wrtc').RTCPeerConnection;
|
|
6
6
|
|
|
7
|
-
const TIME_TO_CONNECTED =
|
|
7
|
+
const TIME_TO_CONNECTED = 30000;
|
|
8
8
|
const TIME_TO_HOST_CANDIDATES = 3000; // NOTE: Too long.
|
|
9
9
|
const TIME_TO_RECONNECTED = 1000;
|
|
10
10
|
|
|
@@ -83,6 +83,7 @@ class WebRtcConnection extends EventEmitter
|
|
|
83
83
|
if (this.peerConnection.iceConnectionState !== 'connected'
|
|
84
84
|
&& this.peerConnection.iceConnectionState !== 'completed')
|
|
85
85
|
{
|
|
86
|
+
console.log("WebRtcConnection timeout, this.peerConnection.iceConnectionState = "+this.peerConnection.iceConnectionState);
|
|
86
87
|
this.close();
|
|
87
88
|
}
|
|
88
89
|
}, this.options.timeToConnected);
|
package/package.json
CHANGED