vani-meeting-server 2.0.5 → 2.0.6
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.
|
@@ -293,6 +293,7 @@ class SFUEachRoomHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
293
293
|
this.roomPaticipants.get(participant.userId)?.cleanUp();
|
|
294
294
|
this.roomPaticipants.delete(participant.userId);
|
|
295
295
|
}
|
|
296
|
+
RedisHandler_1.RedisHandler.getInstance().removeParticipantForRoom(participant.roomId, participant);
|
|
296
297
|
}
|
|
297
298
|
async resumeAllBroadcastingConsumers() {
|
|
298
299
|
this.plainTransportConsumers.forEach((eachConsumer) => {
|
|
@@ -157,8 +157,8 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
157
157
|
}
|
|
158
158
|
this.sendVaniEvent(Event_1.VaniEvent.OnUserLeft, this.selfParticipant);
|
|
159
159
|
this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(false, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnUserLeft, { participant: this.selfParticipant })));
|
|
160
|
-
RedisHandler_1.RedisHandler.getInstance().removeParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
|
|
161
|
-
SFUHandler_1.SFUHandler.getInstance().checkIfCanCloseRoom(this.selfParticipant.roomId);
|
|
160
|
+
await RedisHandler_1.RedisHandler.getInstance().removeParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
|
|
161
|
+
await SFUHandler_1.SFUHandler.getInstance().checkIfCanCloseRoom(this.selfParticipant.roomId);
|
|
162
162
|
this.cleanUp();
|
|
163
163
|
}
|
|
164
164
|
async onNewMessage(msgData) {
|