@viamrobotics/sdk 0.2.2-rc.0 → 0.2.3-next.0

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.
@@ -27,6 +27,8 @@ interface WebRTCOptions {
27
27
  signalingAddress: string;
28
28
  rtcConfig: RTCConfiguration | undefined;
29
29
  noReconnect?: boolean;
30
+ reconnectMaxAttempts?: number;
31
+ reconnectMaxWait?: number;
30
32
  }
31
33
  interface SessionOptions {
32
34
  disabled: boolean;
@@ -15,12 +15,20 @@ interface ICEServer {
15
15
  username?: string;
16
16
  credential?: string;
17
17
  }
18
- /** Options required to dial a robot via WebRTC. */
18
+ /**
19
+ * Options required to dial a robot via WebRTC.
20
+ *
21
+ * - `reconnectMaxAttempts` value should be a positive int; default is 10.
22
+ * - `reconnectMaxWait` value should be a positive int; default is positive
23
+ * infinity.
24
+ */
19
25
  export interface DialWebRTCConf {
20
26
  authEntity?: string;
21
27
  host: string;
22
28
  credential?: Credential;
23
29
  disableSessions?: boolean;
30
+ reconnectMaxAttempts?: number;
31
+ reconnectMaxWait?: number;
24
32
  signalingAddress: string;
25
33
  iceServers?: ICEServer[];
26
34
  noReconnect?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.2.2-rc.0",
3
+ "version": "0.2.3-next.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",
@@ -10,6 +10,7 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/main.d.ts",
13
14
  "import": "./dist/main.es.js",
14
15
  "require": "./dist/main.umd.js"
15
16
  }