vani-meeting-client 2.2.1-beta0 → 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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "2.2.1beta0",
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",