vani-meeting-server 3.0.2 → 3.0.4
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,7 +10,7 @@ class BaseSFUWebsocket {
|
|
|
10
10
|
RedisHandler_1.RedisHandler.getInstance().redisPublisher.publish(topic, stringifyData);
|
|
11
11
|
if (data.interfaceName !== 'MultiSystemEventsBody') {
|
|
12
12
|
EventEmitterHandler_1.EventEmitterHandler.getInstance().vaniEventEmitter.emit(topic, stringifyData);
|
|
13
|
-
console.log("Message sent",
|
|
13
|
+
// console.log("Message sent",topic,stringifyData)
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
//Utilility function
|
|
@@ -201,8 +201,8 @@ class RedisHandler {
|
|
|
201
201
|
};
|
|
202
202
|
storeKeyValueForLocalCacheFromOtherServer = async (data) => {
|
|
203
203
|
try {
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
// ServerHandler.getInstance().serverStartRequest && ServerHandler.getInstance().serverStartRequest.logLevel !== LogLevel.None
|
|
205
|
+
// && console.log("storeKeyValueForLocalCacheFromOtherServer recived ", data)
|
|
206
206
|
if (data.senderIp !== await Constant_1.default.getPublicIp()) {
|
|
207
207
|
const key = data.data?.key;
|
|
208
208
|
const fieldOne = data.data?.fieldOne;
|
|
@@ -211,8 +211,8 @@ class RedisHandler {
|
|
|
211
211
|
let keyData = this.localCacheDataStorage.get(key);
|
|
212
212
|
if (keyData && fieldOne && fieldTwo) {
|
|
213
213
|
keyData.set(fieldOne, fieldTwo);
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
// ServerHandler.getInstance().serverStartRequest && ServerHandler.getInstance().serverStartRequest.logLevel !== LogLevel.None
|
|
215
|
+
// && console.log("storeKeyValueForLocalCacheFromOtherServer set ", keyData)
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -413,15 +413,18 @@ class RedisHandler {
|
|
|
413
413
|
}
|
|
414
414
|
const participants = [];
|
|
415
415
|
if (particpantsInStringify) {
|
|
416
|
+
console.log("getAllParticipants particpantsInStringify ", particpantsInStringify, canFetchFromLocal);
|
|
416
417
|
Object.entries(particpantsInStringify).forEach(([key, value]) => {
|
|
418
|
+
console.log("getAllParticipants key ", key);
|
|
417
419
|
if (key.includes(RedisKeyType.Participants)) {
|
|
418
420
|
const valueStr = value;
|
|
419
421
|
participants.push(Object.assign(new Participant_1.Participant(), JSON.parse(valueStr)));
|
|
422
|
+
console.log("getAllParticipants key ", valueStr);
|
|
420
423
|
}
|
|
421
424
|
});
|
|
422
425
|
}
|
|
423
|
-
if (participants.length
|
|
424
|
-
return this.getAllParticipants(roomId, false);
|
|
426
|
+
if (participants.length < 2 && !canFetchFromLocal) {
|
|
427
|
+
return await this.getAllParticipants(roomId, false);
|
|
425
428
|
}
|
|
426
429
|
return participants;
|
|
427
430
|
}
|