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.
- package/client/client.js +12 -1
- 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