@reactor-team/js-sdk 2.8.0 → 2.8.1

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/dist/index.mjs CHANGED
@@ -71,7 +71,7 @@ import { z } from "zod";
71
71
  // package.json
72
72
  var package_default = {
73
73
  name: "@reactor-team/js-sdk",
74
- version: "2.8.0",
74
+ version: "2.8.1",
75
75
  description: "Reactor JavaScript frontend SDK",
76
76
  main: "dist/index.js",
77
77
  module: "dist/index.mjs",
@@ -1516,7 +1516,6 @@ var Reactor = class {
1516
1516
  */
1517
1517
  connect(jwtToken, options) {
1518
1518
  return __async(this, null, function* () {
1519
- var _a, _b;
1520
1519
  console.debug("[Reactor] Connecting, status:", this.status);
1521
1520
  if (jwtToken == void 0 && !this.local) {
1522
1521
  throw new Error("No authentication provided and not in local mode");
@@ -1564,7 +1563,7 @@ var Reactor = class {
1564
1563
  baseUrl: this.coordinatorUrl,
1565
1564
  sessionId: sessionResponse.session_id,
1566
1565
  jwtToken: this.local ? "local" : jwtToken,
1567
- webrtcVersion: (_b = (_a = sessionResponse.selected_transport) == null ? void 0 : _a.version) != null ? _b : REACTOR_WEBRTC_VERSION,
1566
+ webrtcVersion: REACTOR_WEBRTC_VERSION,
1568
1567
  maxPollAttempts: options == null ? void 0 : options.maxAttempts
1569
1568
  });
1570
1569
  this.setupTransportHandlers();