teleportxr 1.0.12 → 1.0.13
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.
|
@@ -190,8 +190,9 @@ class WebRtcConnection extends EventEmitter
|
|
|
190
190
|
await this.waitUntilIceGatheringStateComplete(this.peerConnection, this.options);
|
|
191
191
|
} catch (error)
|
|
192
192
|
{
|
|
193
|
-
console.error(error.toString());
|
|
193
|
+
console.error("doOffer error: "+error.toString());
|
|
194
194
|
this.close();
|
|
195
|
+
console.log("doOffer close");
|
|
195
196
|
throw error;
|
|
196
197
|
}
|
|
197
198
|
};
|
|
@@ -205,6 +206,7 @@ class WebRtcConnection extends EventEmitter
|
|
|
205
206
|
escapedStr=escapedStr.replaceAll('\n','\\n');
|
|
206
207
|
} catch(error)
|
|
207
208
|
{
|
|
209
|
+
console.error("applyAnswer error: "+error.toString());
|
|
208
210
|
}
|
|
209
211
|
var sessionDescription=new wrtc.RTCSessionDescription();
|
|
210
212
|
sessionDescription.sdp=answer;
|
|
@@ -225,6 +227,7 @@ class WebRtcConnection extends EventEmitter
|
|
|
225
227
|
};
|
|
226
228
|
this.close = () =>
|
|
227
229
|
{
|
|
230
|
+
console.log("WebRtcConnection.close()");
|
|
228
231
|
this.peerConnection.removeEventListener('iceconnectionstatechange', onIceConnectionStateChange);
|
|
229
232
|
if (connectionTimer)
|
|
230
233
|
{
|
package/package.json
CHANGED