teleportxr 1.0.42 → 1.0.43

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.
Files changed (2) hide show
  1. package/client/client.js +12 -1
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -411,8 +411,19 @@ class Client {
411
411
  const buffer = new ArrayBuffer(MAX_BUFFER_SIZE);
412
412
  const resourceSize=resource_encoder.EncodeResource(resource,buffer);
413
413
  this.geometryService.EncodedResource(uid);
414
- const view2 = new DataView(buffer, 0, resourceSize);
414
+ const view2 = new DataView(buffer, 0, resourceSize);
415
415
  console.log("Sending resource "+uid+" "+resource.url+" to Client "+this.clientID+", size: "+resourceSize+" bytes");
416
+ if(!this.webRtcConnection)
417
+ {
418
+ console.error("this.webRtcConnection is null");
419
+ return;
420
+ }
421
+ if(!this.webRtcConnection.sendGeometry)
422
+ {
423
+ console.error("this.webRtcConnection.sendGeometry is null");
424
+ console.log(JSON.stringify(this.webRtcConnection));
425
+ return;
426
+ }
416
427
  this.webRtcConnection.sendGeometry(view2);
417
428
  }
418
429
  SendMesh(uid)
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "name": "teleportxr",
17
17
  "description": "Teleport Spatial Server on node.js",
18
- "version": "1.0.42",
18
+ "version": "1.0.43",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/simul/teleport-nodejs.git"