vani-meeting-client 2.2.0 → 2.2.1-beta1

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.
@@ -158,11 +158,19 @@ var MeetingHandler = /** @class */ (function () {
158
158
  return [4 /*yield*/, new DynamicLibHelper().getVideoCallClassHandler((_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.meetingType, this.meetingStartRequest, this.communicationHandler)];
159
159
  case 3:
160
160
  _e.videoCallHandler = _f.sent();
161
- _f.label = 4;
161
+ return [3 /*break*/, 5];
162
162
  case 4:
163
+ if (this.meetingStartRequest) {
164
+ this.videoCallHandler.setMeetingRequest(this.meetingStartRequest);
165
+ }
166
+ _f.label = 5;
167
+ case 5:
163
168
  if (!this.websocketCallHandler) {
164
169
  this.websocketCallHandler = new WebsocketHandler(this.meetingStartRequest, this.communicationHandler);
165
170
  }
171
+ else if (this.meetingStartRequest) {
172
+ this.websocketCallHandler.setMeetingRequest(this.meetingStartRequest);
173
+ }
166
174
  // this.handleGA();
167
175
  this.emitMessageToSource(VaniEvent.OnInitDone, {});
168
176
  return [2 /*return*/, true];
@@ -468,6 +476,7 @@ var MeetingHandler = /** @class */ (function () {
468
476
  MeetingHandler.prototype.checkSocket = function () {
469
477
  return __awaiter(this, void 0, void 0, function () {
470
478
  return __generator(this, function (_a) {
479
+ debugger;
471
480
  if (!this.meetingStartRequest) {
472
481
  log.error("meetingStartRequestObject not found");
473
482
  return [2 /*return*/, false];
@@ -4,6 +4,7 @@ export declare abstract class Base {
4
4
  protected meetingStartRequest?: MeetingStartRequest;
5
5
  protected communicationHandler?: CommunicationHandler;
6
6
  constructor(_meetingStartRequest: MeetingStartRequest, _communicationHandler: CommunicationHandler);
7
+ setMeetingRequest: (_meetingStartRequest: MeetingStartRequest) => void;
7
8
  protected onObjectCreated(): void;
8
9
  cleanup(): void;
9
10
  }
package/lib/base/Base.js CHANGED
@@ -1,5 +1,9 @@
1
1
  var Base = /** @class */ (function () {
2
2
  function Base(_meetingStartRequest, _communicationHandler) {
3
+ var _this = this;
4
+ this.setMeetingRequest = function (_meetingStartRequest) {
5
+ _this.meetingStartRequest = _meetingStartRequest;
6
+ };
3
7
  this.meetingStartRequest = _meetingStartRequest;
4
8
  this.communicationHandler = _communicationHandler;
5
9
  this.onObjectCreated();
@@ -264,6 +264,10 @@ var WebsocketHandler = /** @class */ (function (_super) {
264
264
  this.wss.close();
265
265
  }
266
266
  }
267
+ if (!url_1.includes("connection=")) {
268
+ url_1 = url_1 + "/?connection=";
269
+ }
270
+ debugger;
267
271
  if (url_1) {
268
272
  this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("Connecting to ", url_1);
269
273
  this.isWebSocketConnectionInProgress = true;
@@ -274,6 +278,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
274
278
  this.wss = new WebSocket(url_1 + this.connection);
275
279
  }
276
280
  this.wss.onopen = function (event) {
281
+ debugger;
277
282
  // this.checkIfSocketConnected();
278
283
  _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("connected ----");
279
284
  _this.isWebSocketConnectionInProgress = false;
@@ -303,6 +308,8 @@ var WebsocketHandler = /** @class */ (function (_super) {
303
308
  }
304
309
  };
305
310
  this.wss.onclose = function (event) {
311
+ debugger;
312
+ _this.isSetUpDone = false;
306
313
  _this.isWebSocketConnectionInProgress = false;
307
314
  _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && ("WebSocket is closed now.");
308
315
  // log.warn(event)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "2.2.0",
3
+ "version": "2.2.1beta1",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",