@koi-design/callkit 2.3.2-beta.1 → 2.3.2-beta.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.
@@ -3893,7 +3893,7 @@ var WebCall = (() => {
3893
3893
  // package.json
3894
3894
  var package_default = {
3895
3895
  name: "@koi-design/callkit",
3896
- version: "2.3.2-beta.1",
3896
+ version: "2.3.2-beta.2",
3897
3897
  description: "callkit",
3898
3898
  author: "koi",
3899
3899
  license: "ISC",
@@ -20564,6 +20564,12 @@ self.onmessage = function(e) {
20564
20564
  this.heartbeatManager.destroy();
20565
20565
  }
20566
20566
  attemptReconnect() {
20567
+ if (this.connectAuthState.isReconnecting) {
20568
+ return;
20569
+ }
20570
+ if (this.connectAuthState.isError) {
20571
+ return;
20572
+ }
20567
20573
  if (this.reconnectTimer) {
20568
20574
  clearTimeout(this.reconnectTimer);
20569
20575
  this.reconnectTimer = void 0;
package/dist/index.js CHANGED
@@ -728,7 +728,7 @@ var Call = class {
728
728
  // package.json
729
729
  var package_default = {
730
730
  name: "@koi-design/callkit",
731
- version: "2.3.2-beta.1",
731
+ version: "2.3.2-beta.2",
732
732
  description: "callkit",
733
733
  author: "koi",
734
734
  license: "ISC",
@@ -17399,6 +17399,12 @@ var Socket = class {
17399
17399
  this.heartbeatManager.destroy();
17400
17400
  }
17401
17401
  attemptReconnect() {
17402
+ if (this.connectAuthState.isReconnecting) {
17403
+ return;
17404
+ }
17405
+ if (this.connectAuthState.isError) {
17406
+ return;
17407
+ }
17402
17408
  if (this.reconnectTimer) {
17403
17409
  clearTimeout(this.reconnectTimer);
17404
17410
  this.reconnectTimer = void 0;
package/dist/index.mjs CHANGED
@@ -701,7 +701,7 @@ var Call = class {
701
701
  // package.json
702
702
  var package_default = {
703
703
  name: "@koi-design/callkit",
704
- version: "2.3.2-beta.1",
704
+ version: "2.3.2-beta.2",
705
705
  description: "callkit",
706
706
  author: "koi",
707
707
  license: "ISC",
@@ -17372,6 +17372,12 @@ var Socket = class {
17372
17372
  this.heartbeatManager.destroy();
17373
17373
  }
17374
17374
  attemptReconnect() {
17375
+ if (this.connectAuthState.isReconnecting) {
17376
+ return;
17377
+ }
17378
+ if (this.connectAuthState.isError) {
17379
+ return;
17380
+ }
17375
17381
  if (this.reconnectTimer) {
17376
17382
  clearTimeout(this.reconnectTimer);
17377
17383
  this.reconnectTimer = void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koi-design/callkit",
3
- "version": "2.3.2-beta.1",
3
+ "version": "2.3.2-beta.2",
4
4
  "description": "callkit",
5
5
  "author": "koi",
6
6
  "license": "ISC",