teleportxr 1.0.51 → 1.0.52
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 +4 -2
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -267,8 +267,10 @@ class Client {
|
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
269
|
var msg =new message.AcknowledgementMessage();
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
// data arrives from the WebSocket signaling channel as a Node Buffer (Uint8Array view over a pooled
|
|
271
|
+
// ArrayBuffer), so we must wrap its underlying buffer using byteOffset/byteLength rather than passing
|
|
272
|
+
// the Buffer directly to DataView.
|
|
273
|
+
var dataView =new DataView(data.buffer,data.byteOffset,data.byteLength);
|
|
272
274
|
core.decodeFromDataView(msg,dataView,0);
|
|
273
275
|
if(msg.uint64_ackId==this.currentOriginState.ackId)
|
|
274
276
|
{
|
package/package.json
CHANGED