@formant/data-sdk 1.71.0 → 1.73.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.
@@ -23,6 +23,14 @@ function whichFormantApiUrl(e, t, n) {
23
23
  );
24
24
  }
25
25
  }
26
+ if (n) {
27
+ if (n.includes("app-dev.formant.io") || n.includes("localhost"))
28
+ return "https://api-dev.formant.io";
29
+ if (n.includes("app-stage.formant.io"))
30
+ return "https://api-stage.formant.io";
31
+ if (n.includes("app.formant.io"))
32
+ return "https://api.formant.io";
33
+ }
26
34
  } catch {
27
35
  }
28
36
  if (n) {
@@ -32203,7 +32211,20 @@ class LiveUniverseData extends BasicUniverseDataConnector {
32203
32211
  };
32204
32212
  }
32205
32213
  subscribeToGeometry(t, n, r) {
32206
- throw new Error("type error in realtime sdk");
32214
+ if (n.sourceType === "realtime") {
32215
+ const o = (s, g) => {
32216
+ g.payload.markerArray && r(g.payload.markerArray);
32217
+ };
32218
+ return this.subscribeToRealtimeMessages(t, n.rosTopicName, o), () => {
32219
+ this.unsubscribeToRealtimeMessages(
32220
+ t,
32221
+ n.rosTopicName,
32222
+ o
32223
+ );
32224
+ };
32225
+ }
32226
+ return () => {
32227
+ };
32207
32228
  }
32208
32229
  subscribeToJointState(t, n, r) {
32209
32230
  if (n.sourceType === "realtime") {