vani-meeting-client 1.0.1 → 1.0.3

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.
@@ -309,7 +309,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
309
309
  WebsocketHandler.prototype.onWebSocketClosed = function (event) {
310
310
  var _this = this;
311
311
  var _a;
312
- log.info("onWebSocketClosed");
312
+ log.info("onWebSocketClosed", event.code);
313
313
  if (event.wasClean === false) {
314
314
  this.socketCheckTimeout = window.setTimeout(function () {
315
315
  _this.tryToReconectSocket();
@@ -337,19 +337,21 @@ var WebsocketHandler = /** @class */ (function (_super) {
337
337
  this.socketSubscribeToTopic();
338
338
  };
339
339
  WebsocketHandler.prototype.socketSubscribeToTopic = function () {
340
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
340
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
341
341
  if (this.isWebScoketConnected() === false) {
342
342
  return;
343
343
  }
344
+ var participant = (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.getSelfParticipant();
345
+ participant.userData = (_b = this.meetingStartRequest) === null || _b === void 0 ? void 0 : _b.userData;
344
346
  var config = {
345
- connectionProtocol: (_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.connectionProtocol,
346
- participant: (_b = this.communicationHandler) === null || _b === void 0 ? void 0 : _b.getSelfParticipant(), apiData: (_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.apiData,
347
- appId: (_d = this.meetingStartRequest) === null || _d === void 0 ? void 0 : _d.appId, sfuRequired: (((_e = this.meetingStartRequest) === null || _e === void 0 ? void 0 : _e.meetingType) === MeetingType.SFU), numberOfUsers: (_f = this.meetingStartRequest) === null || _f === void 0 ? void 0 : _f.numberOfUsers, meetId: (_g = this.meetingStartRequest) === null || _g === void 0 ? void 0 : _g.roomId
347
+ connectionProtocol: (_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.connectionProtocol,
348
+ participant: (_d = this.communicationHandler) === null || _d === void 0 ? void 0 : _d.getSelfParticipant(), apiData: (_e = this.meetingStartRequest) === null || _e === void 0 ? void 0 : _e.apiData,
349
+ appId: (_f = this.meetingStartRequest) === null || _f === void 0 ? void 0 : _f.appId, sfuRequired: (((_g = this.meetingStartRequest) === null || _g === void 0 ? void 0 : _g.meetingType) === MeetingType.SFU), numberOfUsers: (_h = this.meetingStartRequest) === null || _h === void 0 ? void 0 : _h.numberOfUsers, meetId: (_j = this.meetingStartRequest) === null || _j === void 0 ? void 0 : _j.roomId
348
350
  };
349
351
  this.sendSocketMessage(WebSocketBasicEvents.Config, config);
350
- var hostNotificationRoom = { roomId: (_h = this.meetingStartRequest) === null || _h === void 0 ? void 0 : _h.userId, id: (_j = this.meetingStartRequest) === null || _j === void 0 ? void 0 : _j.userId };
352
+ var hostNotificationRoom = { roomId: (_k = this.meetingStartRequest) === null || _k === void 0 ? void 0 : _k.userId, id: (_l = this.meetingStartRequest) === null || _l === void 0 ? void 0 : _l.userId };
351
353
  this.sendSocketMessage(WebSocketBasicEvents.JoinRoom, hostNotificationRoom);
352
- var roomForAllClient = { roomId: (_k = this.meetingStartRequest) === null || _k === void 0 ? void 0 : _k.roomId, id: (_l = this.meetingStartRequest) === null || _l === void 0 ? void 0 : _l.userId };
354
+ var roomForAllClient = { roomId: (_m = this.meetingStartRequest) === null || _m === void 0 ? void 0 : _m.roomId, id: (_o = this.meetingStartRequest) === null || _o === void 0 ? void 0 : _o.userId };
353
355
  this.sendSocketMessage(WebSocketBasicEvents.JoinRoom, roomForAllClient);
354
356
  this.setUpTry = 0;
355
357
  this.askIfSetupDone();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  "analytics": "^0.7.21",
47
47
  "axios": "^0.24.0",
48
48
  "loglevel": "^1.8.0",
49
- "mediasoup-client": "^3.6.66",
49
+ "mediasoup-client": "^3.6.68",
50
50
  "react-native-google-analytics-bridge": "^7.1.0"
51
51
  },
52
52
  "optionalDependencies": {}