vani-meeting-server 1.4.5 → 1.4.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.
@@ -187,6 +187,12 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
187
187
  else if (paylod.type === WebSocketBasicEvents.OnAudioVideoPauseResume) {
188
188
  this.onAudioVideoPauseResume(paylod.data);
189
189
  }
190
+ else if (paylod.type === WebSocketBasicEvents.UpdateParticipant) {
191
+ console.log("OnParticipantUpdated", paylod.data);
192
+ this.selfParticipant = paylod.data;
193
+ RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
194
+ this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(false, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnParticipantUpdated, this.selfParticipant)));
195
+ }
190
196
  else if (paylod.type === SFUMessageType.SFUMessage) {
191
197
  const roomSFUHandler = SFUHandler_1.SFUHandler.getInstance().getRoomSFUHandler(this.selfParticipant?.roomId);
192
198
  if (roomSFUHandler) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",