stream-chat 4.4.3-dev.2 → 4.4.3-dev.3

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
@@ -6516,7 +6516,7 @@ var StreamChat = /*#__PURE__*/function () {
6516
6516
 
6517
6517
  case 8:
6518
6518
  if (!this.wsConnection && (this.options.warmUp || this.options.enableInsights)) {
6519
- this.sendBeacon();
6519
+ this.sayHi();
6520
6520
  } // The StableWSConnection handles all the reconnection logic.
6521
6521
 
6522
6522
 
@@ -6558,8 +6558,8 @@ var StreamChat = /*#__PURE__*/function () {
6558
6558
  return connect;
6559
6559
  }()
6560
6560
  }, {
6561
- key: "sendBeacon",
6562
- value: function sendBeacon() {
6561
+ key: "sayHi",
6562
+ value: function sayHi() {
6563
6563
  var _this4 = this;
6564
6564
 
6565
6565
  var client_request_id = randomId();
@@ -6568,8 +6568,8 @@ var StreamChat = /*#__PURE__*/function () {
6568
6568
  'x-client-request-id': client_request_id
6569
6569
  }
6570
6570
  };
6571
- this.doAxiosRequest('get', this.baseURL + '/beacon', null, opts).catch(function (e) {
6572
- _this4.postInsights('http_beacon_failed', {
6571
+ this.doAxiosRequest('get', this.baseURL + '/hi', null, opts).catch(function (e) {
6572
+ _this4.postInsights('http_hi_failed', {
6573
6573
  api_key: _this4.key,
6574
6574
  err: e,
6575
6575
  client_request_id: client_request_id
@@ -8387,7 +8387,7 @@ var StreamChat = /*#__PURE__*/function () {
8387
8387
  }, {
8388
8388
  key: "getUserAgent",
8389
8389
  value: function getUserAgent() {
8390
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "4.4.3-dev.2");
8390
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "4.4.3-dev.3");
8391
8391
  }
8392
8392
  }, {
8393
8393
  key: "setUserAgent",