podchat-browser 12.7.2-snapshot.13 → 12.7.2-snapshot.14

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.
@@ -39138,8 +39138,7 @@ module.exports = function (thing, encoding, name) {
39138
39138
  return retryStep.value;
39139
39139
  },
39140
39140
  set(val) {
39141
- // logLevel.debug && console.debug("[Async][async.js] retryStep new value:", val);
39142
- console.debug("[Async][async.js] retryStep new value:", val);
39141
+ logLevel.debug && console.debug("[Async][async.js] retryStep new value:", val);
39143
39142
  retryStep.value = val;
39144
39143
  }
39145
39144
  };
@@ -39196,7 +39195,6 @@ module.exports = function (thing, encoding, name) {
39196
39195
  socketReconnectCheck && clearTimeout(socketReconnectCheck);
39197
39196
 
39198
39197
  isSocketOpen = true;
39199
- // retryStep = 4;
39200
39198
  retryStep.set(4);
39201
39199
 
39202
39200
  socketState = socketStateType.OPEN;
@@ -39924,6 +39922,10 @@ module.exports = function (thing, encoding, name) {
39924
39922
 
39925
39923
  onCloseHandler = function(event) {
39926
39924
  pingController.stopPingLoop();
39925
+ socket.onclose = null;
39926
+ socket.onmessage = null;
39927
+ socket.onerror = null;
39928
+ socket.onopen = null;
39927
39929
  eventCallback["close"](event);
39928
39930
  },
39929
39931
 
@@ -39992,6 +39994,7 @@ module.exports = function (thing, encoding, name) {
39992
39994
  this.close = function() {
39993
39995
  logLevel.debug && console.debug("[Async][Socket.js] Closing socket by call to this.close");
39994
39996
  socket.close();
39997
+ onCloseHandler(null);
39995
39998
  socketWatchTimeout && clearTimeout(socketWatchTimeout);
39996
39999
  }
39997
40000
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podchat-browser",
3
- "version": "12.7.2-snapshot.13",
3
+ "version": "12.7.2-snapshot.14",
4
4
  "description": "Javascript SDK to use POD's Chat Service - Browser Only",
5
5
  "main": "./dist/node/chat.js",
6
6
  "scripts": {
@@ -51,7 +51,7 @@
51
51
  "faker": "^5.5.3",
52
52
  "kurento-utils": "^6.16.0",
53
53
  "node-rsa": "^1.1.1",
54
- "podasync-ws-only": "^2.7.10-snapshot.10",
54
+ "podasync-ws-only": "^2.7.10-snapshot.11",
55
55
  "query-string": "^6.8.1",
56
56
  "webrtc-adapter": "^8.0.0"
57
57
  },