@defcomm/meetingsdk 0.4.8 → 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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
@@ -2267,6 +2267,9 @@ var VideoSDKCore = class {
|
|
|
2267
2267
|
this.state.addChatMessage(msg);
|
|
2268
2268
|
this.events.onChatMessage?.(msg);
|
|
2269
2269
|
},
|
|
2270
|
+
onReaction: (reaction) => {
|
|
2271
|
+
this.events.onReaction?.(reaction);
|
|
2272
|
+
},
|
|
2270
2273
|
onJoinRequested: (request) => {
|
|
2271
2274
|
const requestId = request?.request_id || request?.requestId;
|
|
2272
2275
|
const participantId = request?.user_id || request?.participantId;
|
|
@@ -2913,10 +2916,6 @@ var MeetingProvider = ({
|
|
|
2913
2916
|
}
|
|
2914
2917
|
};
|
|
2915
2918
|
console.log("[MeetingProvider] PUBSUB REACTION", message);
|
|
2916
|
-
pubSubListeners.current.get("REACTION")?.forEach((fn) => {
|
|
2917
|
-
console.log("[MeetingProvider] DELIVERING REACTION");
|
|
2918
|
-
fn(message);
|
|
2919
|
-
});
|
|
2920
2919
|
setReactionPubSubMessages(
|
|
2921
2920
|
(previous) => [...previous, message].slice(-50)
|
|
2922
2921
|
);
|