vani-meeting-server 2.1.0 → 2.1.2

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.
@@ -25,6 +25,7 @@ class RedisHandler {
25
25
  return this.redisHandler;
26
26
  }
27
27
  init() {
28
+ console.log("this.redisClient redis client", ServerHandler_1.ServerHandler.getInstance().serverStartRequest.redisUrl);
28
29
  this.redisClient = (0, redis_1.createClient)({ url: ServerHandler_1.ServerHandler.getInstance().serverStartRequest.redisUrl, database: ServerHandler_1.ServerHandler.getInstance().serverStartRequest.redisDBIndex });
29
30
  this.redisSubscriber = (0, redis_1.createClient)({ url: ServerHandler_1.ServerHandler.getInstance().serverStartRequest.redisUrl });
30
31
  this.redisPublisher = (0, redis_1.createClient)({ url: ServerHandler_1.ServerHandler.getInstance().serverStartRequest.redisUrl });
@@ -58,11 +59,13 @@ class RedisHandler {
58
59
  const oldIps = await this.fetchIpsForRoomId(roomId);
59
60
  const isOldIpPresent = oldIps.find((eachOldIp) => eachOldIp.ip === ipAddress && eachOldIp.port === ServerHandler_1.ServerHandler.getInstance().serverStartRequest.port);
60
61
  if (isOldIpPresent) {
62
+ console.log("setIpForRoomId", isOldIpPresent);
61
63
  return;
62
64
  }
63
65
  oldIps.push({ ip: ipAddress, port: ServerHandler_1.ServerHandler.getInstance().serverStartRequest.port });
64
66
  await this.redisClient.hSet(roomId, RedisKeyType.IpAddress, JSON.stringify(oldIps));
65
67
  this.updateRoomCleanupTimeOut(roomId);
68
+ await this.fetchIpsForRoomId(roomId);
66
69
  }
67
70
  async fetchIpsForRoomId(roomId) {
68
71
  const ipAddress = await this.redisClient.hGet(roomId, RedisKeyType.IpAddress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",