@defcomm/meetingsdk 0.4.7 → 0.4.9

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.
package/dist/index.d.mts CHANGED
@@ -170,6 +170,7 @@ interface VideoSDKCoreOptions {
170
170
  onRecordingStopped?: (recording: any) => void;
171
171
  onRoomUpdate?: (data: any) => void;
172
172
  onChatMessage?: (message: ChatMessage) => void;
173
+ onReaction?: (reaction: Reaction) => void;
173
174
  onMuteStateChanged?: (peerId: string, kind: "audio" | "video", muted: boolean) => void;
174
175
  }
175
176
  type SFUConnectionState = "idle" | "connecting" | "joining" | "waiting_approval" | "connected" | "reconnecting" | "leaving" | "disconnected";
package/dist/index.d.ts CHANGED
@@ -170,6 +170,7 @@ interface VideoSDKCoreOptions {
170
170
  onRecordingStopped?: (recording: any) => void;
171
171
  onRoomUpdate?: (data: any) => void;
172
172
  onChatMessage?: (message: ChatMessage) => void;
173
+ onReaction?: (reaction: Reaction) => void;
173
174
  onMuteStateChanged?: (peerId: string, kind: "audio" | "video", muted: boolean) => void;
174
175
  }
175
176
  type SFUConnectionState = "idle" | "connecting" | "joining" | "waiting_approval" | "connected" | "reconnecting" | "leaving" | "disconnected";
package/dist/index.js CHANGED
@@ -1045,6 +1045,7 @@ var SFUClient = class {
1045
1045
  }
1046
1046
  case "reaction": {
1047
1047
  const reaction = payload.reaction || payload;
1048
+ console.log("[SFUClient] RECEIVED REACTION", reaction);
1048
1049
  if (reaction?.id && reaction?.emoji) this.onReaction(reaction);
1049
1050
  break;
1050
1051
  }
@@ -2266,6 +2267,9 @@ var VideoSDKCore = class {
2266
2267
  this.state.addChatMessage(msg);
2267
2268
  this.events.onChatMessage?.(msg);
2268
2269
  },
2270
+ onReaction: (reaction) => {
2271
+ this.events.onReaction?.(reaction);
2272
+ },
2269
2273
  onJoinRequested: (request) => {
2270
2274
  const requestId = request?.request_id || request?.requestId;
2271
2275
  const participantId = request?.user_id || request?.participantId;
@@ -2911,6 +2915,7 @@ var MeetingProvider = ({
2911
2915
  emoji: reaction.emoji
2912
2916
  }
2913
2917
  };
2918
+ console.log("[MeetingProvider] PUBSUB REACTION", message);
2914
2919
  setReactionPubSubMessages(
2915
2920
  (previous) => [...previous, message].slice(-50)
2916
2921
  );