teleportxr 1.0.73 → 1.0.75

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/README.md CHANGED
@@ -4,3 +4,14 @@ Teleport virtual reality server for node.js
4
4
  1. Ensure node.js is installed.
5
5
  2. Run npm install teleportxr.
6
6
  3. See https://github.com/teleportxr/teleport-nodejs-server-example.git for example usage.
7
+
8
+ ## Environment variables
9
+
10
+ The library itself reads the following environment variables. Variables that
11
+ configure the example server (`TELEPORT_*`, `PORT`) are documented in the
12
+ [teleport-nodejs-server-example](https://github.com/teleportxr/teleport-nodejs-server-example)
13
+ README.
14
+
15
+ | Variable | Default | Description |
16
+ |----------|---------|-------------|
17
+ | `WEBRTC_CONNECT_TIMEOUT_MS` | `10000` | Time in milliseconds to wait for a client to complete WebRTC connection establishment. Clients that don't establish a peer connection within this window are disconnected and removed. Read in `client/client.js`. |
package/client/client.js CHANGED
@@ -305,7 +305,7 @@ class Client {
305
305
  return;
306
306
  }
307
307
  var msg =new message.AcknowledgementMessage();
308
- // ReceiveAcknowledgement is reached from two transports with different argument shapes:
308
+ // ReceiveAcknowledgement can be reached from THREE transports with different argument shapes:
309
309
  // - WebRTC data channels (receivedMessageReliable / receivedMessageUnreliable) deliver
310
310
  // event.data as a raw ArrayBuffer; ArrayBuffer.isView(data) is false and data.buffer
311
311
  // is undefined, so we must construct the DataView from `data` directly.
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "name": "teleportxr",
18
18
  "description": "Teleport Spatial Server on node.js",
19
- "version": "1.0.73",
19
+ "version": "1.0.75",
20
20
  "repository": {
21
21
  "type": "git",
22
22
  "url": "git+https://github.com/simul/teleport-nodejs.git"
@@ -180,6 +180,7 @@ function GetResourceUidFromUrl(type, url) {
180
180
  var uid = Resource.pathToUid.get(url);
181
181
  return uid;
182
182
  }
183
+ console.error("GetResourceUidFromUrl, could not find resource uid for " + url);
183
184
  return 0;
184
185
  }
185
186