stream-chat 8.1.0 → 8.1.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
@@ -8197,7 +8197,9 @@ var StreamChat = /*#__PURE__*/function () {
8197
8197
  }, {
8198
8198
  key: "setLocalDevice",
8199
8199
  value: function setLocalDevice(device) {
8200
- if (this.wsConnection || this.wsFallback) {
8200
+ var _this$wsConnection5, _this$wsConnection6, _this$wsFallback4;
8201
+
8202
+ if ((_this$wsConnection5 = this.wsConnection) !== null && _this$wsConnection5 !== void 0 && _this$wsConnection5.isConnecting && this.wsPromise || ((_this$wsConnection6 = this.wsConnection) !== null && _this$wsConnection6 !== void 0 && _this$wsConnection6.isHealthy || (_this$wsFallback4 = this.wsFallback) !== null && _this$wsFallback4 !== void 0 && _this$wsFallback4.isHealthy()) && this._hasConnectionID()) {
8201
8203
  throw new Error('you can only set device before opening a websocket connection');
8202
8204
  }
8203
8205
 
@@ -9889,7 +9891,7 @@ var StreamChat = /*#__PURE__*/function () {
9889
9891
  }, {
9890
9892
  key: "getUserAgent",
9891
9893
  value: function getUserAgent() {
9892
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.0");
9894
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.1");
9893
9895
  }
9894
9896
  }, {
9895
9897
  key: "setUserAgent",