vani-meeting-server 1.5.9 → 1.6.0
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.
|
@@ -163,6 +163,7 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
163
163
|
this.onUserLeft();
|
|
164
164
|
}
|
|
165
165
|
else if (paylod.type === WebSocketBasicEvents.Pong) {
|
|
166
|
+
console.log(paylod, this.numberOfPongWaiting);
|
|
166
167
|
this.numberOfPongWaiting = 0;
|
|
167
168
|
}
|
|
168
169
|
else if (paylod.type === WebSocketBasicEvents.GetMeetingStartTime) {
|
|
@@ -331,6 +332,7 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
331
332
|
}
|
|
332
333
|
this.redisBroadcastMessageToTopic(this.selfParticipant.userId, this.preapreClientMessageBody(true, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.Ping, { userId: this.selfParticipant.userId })));
|
|
333
334
|
this.numberOfPongWaiting = this.numberOfPongWaiting + 1;
|
|
335
|
+
console.log("Pong", this.numberOfPongWaiting);
|
|
334
336
|
setTimeout(this.startPingPong, 5000);
|
|
335
337
|
}
|
|
336
338
|
}
|