@seamly/web-ui 22.3.1 → 22.3.2

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.
@@ -1989,6 +1989,7 @@ class ConversationConnector {
1989
1989
  _ConversationConnector_connectionListeners.set(this, []);
1990
1990
  }
1991
1991
  connect(url, channelName, channelTopic, accessToken) {
1992
+ var _a;
1992
1993
  return __awaiter(this, void 0, void 0, function* () {
1993
1994
  this.url = url;
1994
1995
  this.accessToken = accessToken;
@@ -1998,7 +1999,7 @@ class ConversationConnector {
1998
1999
  url: splittedUrl,
1999
2000
  params
2000
2001
  } = split_url_params(this.url);
2001
- if (!this.socket) {
2002
+ if (!((_a = this.socket) === null || _a === void 0 ? void 0 : _a.isConnected())) {
2002
2003
  this.socket = new Socket(splittedUrl, {
2003
2004
  params: Object.assign(Object.assign({}, params), {
2004
2005
  v: apiVersion
@@ -2077,6 +2078,8 @@ class ConversationConnector {
2077
2078
  disconnect() {
2078
2079
  var _a;
2079
2080
  (_a = this.channel) === null || _a === void 0 ? void 0 : _a.leave().receive('ok', () => {
2081
+ var _a;
2082
+ (_a = this.socket) === null || _a === void 0 ? void 0 : _a.disconnect();
2080
2083
  log('[CHANNEL][LEAVE] OK');
2081
2084
  __classPrivateFieldSet(this, _ConversationConnector_connectionListeners, [], "f");
2082
2085
  });
@@ -2619,7 +2622,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
2619
2622
  return {
2620
2623
  clientName: "@seamly/web-ui",
2621
2624
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
2622
- clientVersion: "22.3.1",
2625
+ clientVersion: "22.3.2",
2623
2626
  currentUrl: window.location.toString(),
2624
2627
  screenResolution: `${window.screen.width}x${window.screen.height}`,
2625
2628
  timezone: getTimeZone(),