@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.js CHANGED
@@ -117,7 +117,7 @@ var import_zod = require("zod");
117
117
  // package.json
118
118
  var package_default = {
119
119
  name: "@reactor-team/js-sdk",
120
- version: "2.8.0",
120
+ version: "2.8.1",
121
121
  description: "Reactor JavaScript frontend SDK",
122
122
  main: "dist/index.js",
123
123
  module: "dist/index.mjs",
@@ -1562,7 +1562,6 @@ var Reactor = class {
1562
1562
  */
1563
1563
  connect(jwtToken, options) {
1564
1564
  return __async(this, null, function* () {
1565
- var _a, _b;
1566
1565
  console.debug("[Reactor] Connecting, status:", this.status);
1567
1566
  if (jwtToken == void 0 && !this.local) {
1568
1567
  throw new Error("No authentication provided and not in local mode");
@@ -1610,7 +1609,7 @@ var Reactor = class {
1610
1609
  baseUrl: this.coordinatorUrl,
1611
1610
  sessionId: sessionResponse.session_id,
1612
1611
  jwtToken: this.local ? "local" : jwtToken,
1613
- webrtcVersion: (_b = (_a = sessionResponse.selected_transport) == null ? void 0 : _a.version) != null ? _b : REACTOR_WEBRTC_VERSION,
1612
+ webrtcVersion: REACTOR_WEBRTC_VERSION,
1614
1613
  maxPollAttempts: options == null ? void 0 : options.maxAttempts
1615
1614
  });
1616
1615
  this.setupTransportHandlers();