akeyless-client-commons 1.1.49 → 1.1.50

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.
@@ -1284,6 +1284,18 @@ var SocketService = /*#__PURE__*/ function() {
1284
1284
  return cb();
1285
1285
  });
1286
1286
  });
1287
+ this.socket.io.on("close", function(reason) {
1288
+ console.log("Socket Manager close:", reason);
1289
+ _this.disconnectCallbacks.forEach(function(cb) {
1290
+ return cb();
1291
+ });
1292
+ });
1293
+ this.socket.io.engine.on("close", function(reason) {
1294
+ console.log("Socket Engine close:", reason);
1295
+ _this.disconnectCallbacks.forEach(function(cb) {
1296
+ return cb();
1297
+ });
1298
+ });
1287
1299
  this.socket.on("session", function(param) {
1288
1300
  var session_id = param.session_id;
1289
1301
  if (session_id) {
@@ -1388,6 +1400,7 @@ var SocketService = /*#__PURE__*/ function() {
1388
1400
  value: function disconnectSocket() {
1389
1401
  if (this.socket) {
1390
1402
  this.socket.disconnect();
1403
+ this.socket.io.engine.close();
1391
1404
  }
1392
1405
  }
1393
1406
  },
@@ -1062,6 +1062,18 @@ var SocketService = /*#__PURE__*/ function() {
1062
1062
  return cb();
1063
1063
  });
1064
1064
  });
1065
+ this.socket.io.on("close", function(reason) {
1066
+ console.log("Socket Manager close:", reason);
1067
+ _this.disconnectCallbacks.forEach(function(cb) {
1068
+ return cb();
1069
+ });
1070
+ });
1071
+ this.socket.io.engine.on("close", function(reason) {
1072
+ console.log("Socket Engine close:", reason);
1073
+ _this.disconnectCallbacks.forEach(function(cb) {
1074
+ return cb();
1075
+ });
1076
+ });
1065
1077
  this.socket.on("session", function(param) {
1066
1078
  var session_id = param.session_id;
1067
1079
  if (session_id) {
@@ -1166,6 +1178,7 @@ var SocketService = /*#__PURE__*/ function() {
1166
1178
  value: function disconnectSocket() {
1167
1179
  if (this.socket) {
1168
1180
  this.socket.disconnect();
1181
+ this.socket.io.engine.close();
1169
1182
  }
1170
1183
  }
1171
1184
  },
@@ -2714,6 +2714,18 @@ var SocketService = /*#__PURE__*/ function() {
2714
2714
  return cb();
2715
2715
  });
2716
2716
  });
2717
+ this.socket.io.on("close", function(reason) {
2718
+ console.log("Socket Manager close:", reason);
2719
+ _this.disconnectCallbacks.forEach(function(cb) {
2720
+ return cb();
2721
+ });
2722
+ });
2723
+ this.socket.io.engine.on("close", function(reason) {
2724
+ console.log("Socket Engine close:", reason);
2725
+ _this.disconnectCallbacks.forEach(function(cb) {
2726
+ return cb();
2727
+ });
2728
+ });
2717
2729
  this.socket.on("session", function(param) {
2718
2730
  var session_id = param.session_id;
2719
2731
  if (session_id) {
@@ -2818,6 +2830,7 @@ var SocketService = /*#__PURE__*/ function() {
2818
2830
  value: function disconnectSocket() {
2819
2831
  if (this.socket) {
2820
2832
  this.socket.disconnect();
2833
+ this.socket.io.engine.close();
2821
2834
  }
2822
2835
  }
2823
2836
  },
@@ -2332,6 +2332,18 @@ var SocketService = /*#__PURE__*/ function() {
2332
2332
  return cb();
2333
2333
  });
2334
2334
  });
2335
+ this.socket.io.on("close", function(reason) {
2336
+ console.log("Socket Manager close:", reason);
2337
+ _this.disconnectCallbacks.forEach(function(cb) {
2338
+ return cb();
2339
+ });
2340
+ });
2341
+ this.socket.io.engine.on("close", function(reason) {
2342
+ console.log("Socket Engine close:", reason);
2343
+ _this.disconnectCallbacks.forEach(function(cb) {
2344
+ return cb();
2345
+ });
2346
+ });
2335
2347
  this.socket.on("session", function(param) {
2336
2348
  var session_id = param.session_id;
2337
2349
  if (session_id) {
@@ -2436,6 +2448,7 @@ var SocketService = /*#__PURE__*/ function() {
2436
2448
  value: function disconnectSocket() {
2437
2449
  if (this.socket) {
2438
2450
  this.socket.disconnect();
2451
+ this.socket.io.engine.close();
2439
2452
  }
2440
2453
  }
2441
2454
  },
@@ -699,6 +699,18 @@ var SocketService = /*#__PURE__*/ function() {
699
699
  return cb();
700
700
  });
701
701
  });
702
+ this.socket.io.on("close", function(reason) {
703
+ console.log("Socket Manager close:", reason);
704
+ _this.disconnectCallbacks.forEach(function(cb) {
705
+ return cb();
706
+ });
707
+ });
708
+ this.socket.io.engine.on("close", function(reason) {
709
+ console.log("Socket Engine close:", reason);
710
+ _this.disconnectCallbacks.forEach(function(cb) {
711
+ return cb();
712
+ });
713
+ });
702
714
  this.socket.on("session", function(param) {
703
715
  var session_id = param.session_id;
704
716
  if (session_id) {
@@ -803,6 +815,7 @@ var SocketService = /*#__PURE__*/ function() {
803
815
  value: function disconnectSocket() {
804
816
  if (this.socket) {
805
817
  this.socket.disconnect();
818
+ this.socket.io.engine.close();
806
819
  }
807
820
  }
808
821
  },
@@ -602,6 +602,18 @@ var SocketService = /*#__PURE__*/ function() {
602
602
  return cb();
603
603
  });
604
604
  });
605
+ this.socket.io.on("close", function(reason) {
606
+ console.log("Socket Manager close:", reason);
607
+ _this.disconnectCallbacks.forEach(function(cb) {
608
+ return cb();
609
+ });
610
+ });
611
+ this.socket.io.engine.on("close", function(reason) {
612
+ console.log("Socket Engine close:", reason);
613
+ _this.disconnectCallbacks.forEach(function(cb) {
614
+ return cb();
615
+ });
616
+ });
605
617
  this.socket.on("session", function(param) {
606
618
  var session_id = param.session_id;
607
619
  if (session_id) {
@@ -706,6 +718,7 @@ var SocketService = /*#__PURE__*/ function() {
706
718
  value: function disconnectSocket() {
707
719
  if (this.socket) {
708
720
  this.socket.disconnect();
721
+ this.socket.io.engine.close();
709
722
  }
710
723
  }
711
724
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.49",
3
+ "version": "1.1.50",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",