vani-meeting-server 2.9.5-beta2 → 2.9.5-beta3

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.
@@ -10,6 +10,7 @@ export declare enum WebSocketBasicEvents {
10
10
  Pong = "pong",
11
11
  AudioVideoPauseResume = "audioVideoPauseResume",
12
12
  OnStartMeetingCalled = "startMeetingCalled",
13
+ OnStartParticipantMeetingCalled = "OnStartParticipantMeetingCalled",
13
14
  OnAudioVideoPauseResume = "audioVideoPauseResume",
14
15
  OnAudioVideoStatusUpdated = "audioVideoStatusUpdated",
15
16
  OnAudioUnblockRequest = "audioUnblock",
@@ -27,6 +27,7 @@ var WebSocketBasicEvents;
27
27
  WebSocketBasicEvents["Pong"] = "pong";
28
28
  WebSocketBasicEvents["AudioVideoPauseResume"] = "audioVideoPauseResume";
29
29
  WebSocketBasicEvents["OnStartMeetingCalled"] = "startMeetingCalled";
30
+ WebSocketBasicEvents["OnStartParticipantMeetingCalled"] = "OnStartParticipantMeetingCalled";
30
31
  WebSocketBasicEvents["OnAudioVideoPauseResume"] = "audioVideoPauseResume";
31
32
  WebSocketBasicEvents["OnAudioVideoStatusUpdated"] = "audioVideoStatusUpdated";
32
33
  WebSocketBasicEvents["OnAudioUnblockRequest"] = "audioUnblock";
@@ -298,7 +299,8 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
298
299
  async onStartMeetingCalled(data) {
299
300
  if (this.selfParticipant) {
300
301
  this.selfParticipant.isStartMeetingCalled = true;
301
- RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
302
+ await RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
303
+ this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(true, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnStartParticipantMeetingCalled, { participant: this.selfParticipant })));
302
304
  }
303
305
  }
304
306
  async onConfig(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "2.9.5beta2",
3
+ "version": "2.9.5beta3",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",