vani-meeting-client 0.6.3 → 0.6.6

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.
@@ -311,9 +311,10 @@ var MeetingHandler = /** @class */ (function () {
311
311
  return [];
312
312
  };
313
313
  MeetingHandler.prototype.isWebScoketConnected = function () {
314
- var _a;
314
+ var _a, _b;
315
+ console.log("Room Id", (_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.roomId);
315
316
  if (this.websocketCallHandler) {
316
- return (_a = this.websocketCallHandler) === null || _a === void 0 ? void 0 : _a.isWebScoketConnected();
317
+ return (_b = this.websocketCallHandler) === null || _b === void 0 ? void 0 : _b.isWebScoketConnected();
317
318
  }
318
319
  return false;
319
320
  };
@@ -137,6 +137,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
137
137
  if (this.wss) {
138
138
  this.wss.close();
139
139
  this.wss = undefined;
140
+ console.log("this.wss undefined cleanup ");
140
141
  }
141
142
  if (this.socketCheckTimeout) {
142
143
  window.clearTimeout(this.socketCheckTimeout);
@@ -231,6 +232,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
231
232
  };
232
233
  this.wss.onerror = function (event) {
233
234
  var _a;
235
+ console.log("wss error", event);
234
236
  _this.isWebSocketConnectionInProgress = false;
235
237
  (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnSocketError, event);
236
238
  if (_this.wss) {
@@ -253,9 +255,11 @@ var WebsocketHandler = /** @class */ (function (_super) {
253
255
  });
254
256
  };
255
257
  WebsocketHandler.prototype.isWebScoketConnected = function () {
258
+ var _a;
256
259
  if (this.wss && this.wss.readyState === 1) {
257
260
  return true;
258
261
  }
262
+ console.log("this.wss.readyState", this.wss, (_a = this.wss) === null || _a === void 0 ? void 0 : _a.readyState);
259
263
  return false;
260
264
  };
261
265
  WebsocketHandler.prototype.sendSocketMessage = function (type, data) {
@@ -272,6 +276,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
272
276
  (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnReconecting, {});
273
277
  this.wss.close(3005);
274
278
  this.wss = undefined;
279
+ console.log("this.wss undefined reconnectOnInternetFailur ");
275
280
  this.connection = ConnectionType.reconnect;
276
281
  this.connect(true);
277
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.6.3",
3
+ "version": "0.6.6",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",