teleportxr 1.0.42 → 1.0.44
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.
- package/client/client.js +13 -1
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -330,6 +330,7 @@ class Client {
|
|
|
330
330
|
this.currentOriginState.ackId=setp.uint64_ackId;
|
|
331
331
|
this.currentOriginState.acknowledged=false;
|
|
332
332
|
this.currentOriginState.serverTimeSentUs=core.getTimestampUs();
|
|
333
|
+
console.log("Sending SetOriginNodeCommand with origin uid "+setp.uint64_originNodeUid+" and ackId "+setp.uint64_ackId);
|
|
333
334
|
this.SendCommand(setp);
|
|
334
335
|
}
|
|
335
336
|
SendLighting()
|
|
@@ -411,8 +412,19 @@ class Client {
|
|
|
411
412
|
const buffer = new ArrayBuffer(MAX_BUFFER_SIZE);
|
|
412
413
|
const resourceSize=resource_encoder.EncodeResource(resource,buffer);
|
|
413
414
|
this.geometryService.EncodedResource(uid);
|
|
414
|
-
const view2 = new DataView(buffer, 0, resourceSize);
|
|
415
|
+
const view2 = new DataView(buffer, 0, resourceSize);
|
|
415
416
|
console.log("Sending resource "+uid+" "+resource.url+" to Client "+this.clientID+", size: "+resourceSize+" bytes");
|
|
417
|
+
if(!this.webRtcConnection)
|
|
418
|
+
{
|
|
419
|
+
console.error("this.webRtcConnection is null");
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
if(!this.webRtcConnection.sendGeometry)
|
|
423
|
+
{
|
|
424
|
+
console.error("this.webRtcConnection.sendGeometry is null");
|
|
425
|
+
console.log(JSON.stringify(this.webRtcConnection));
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
416
428
|
this.webRtcConnection.sendGeometry(view2);
|
|
417
429
|
}
|
|
418
430
|
SendMesh(uid)
|
package/package.json
CHANGED