vani-meeting-server 2.2.5 → 2.2.7
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.
|
@@ -41,11 +41,32 @@ class RedisHandler {
|
|
|
41
41
|
console.info('Redis has been connected successfully.', data);
|
|
42
42
|
});
|
|
43
43
|
this.redisClient.on('end', (err) => {
|
|
44
|
-
console.
|
|
44
|
+
console.log('Redis connection has been closed.', err);
|
|
45
45
|
});
|
|
46
46
|
this.redisClient.on('error', (err) => {
|
|
47
|
-
console.
|
|
47
|
+
console.log('Unknown exception occurred at Redis', err);
|
|
48
48
|
});
|
|
49
|
+
this.redisClient.on('ready', () => console.log('client is ready'));
|
|
50
|
+
this.redisSubscriber.on("connect", (data) => {
|
|
51
|
+
console.info(' redisSubscriber Redis has been connected successfully.', data);
|
|
52
|
+
});
|
|
53
|
+
this.redisSubscriber.on('end', (err) => {
|
|
54
|
+
console.log('redisSubscriber Redis connection has been closed.', err);
|
|
55
|
+
});
|
|
56
|
+
this.redisSubscriber.on('error', (err) => {
|
|
57
|
+
console.log('redisSubscriber Unknown exception occurred at Redis', err);
|
|
58
|
+
});
|
|
59
|
+
this.redisSubscriber.on('ready', () => console.log('redisSubscriber client is ready'));
|
|
60
|
+
this.redisPublisher.on("connect", (data) => {
|
|
61
|
+
console.info('redisPublisher Redis has been connected successfully.', data);
|
|
62
|
+
});
|
|
63
|
+
this.redisPublisher.on('end', (err) => {
|
|
64
|
+
console.log('redisPublisher Redis connection has been closed.', err);
|
|
65
|
+
});
|
|
66
|
+
this.redisPublisher.on('error', (err) => {
|
|
67
|
+
console.log('redisPublisher Unknown exception occurred at Redis', err);
|
|
68
|
+
});
|
|
69
|
+
this.redisPublisher.on('ready', () => console.log('redisPublisher client is ready'));
|
|
49
70
|
await this.redisClient.connect();
|
|
50
71
|
await this.redisSubscriber.connect();
|
|
51
72
|
await this.redisPublisher.connect();
|
|
@@ -302,7 +302,6 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
302
302
|
let isReconnection = false;
|
|
303
303
|
if (this.isReconnectionFromUrl && !checkIfOldUserExist) {
|
|
304
304
|
this.redisBroadcastMessageToTopic(this.selfParticipant.userId, this.preapreClientMessageBody(true, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnUserOnFoundWhileReconnect, { participant: this.selfParticipant })));
|
|
305
|
-
return;
|
|
306
305
|
}
|
|
307
306
|
if (this.isReconnectionFromUrl || checkIfOldUserExist) {
|
|
308
307
|
//send message for rejoin
|