vani-meeting-server 2.1.4 → 2.1.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.
|
@@ -15,7 +15,7 @@ export declare class RedisHandler {
|
|
|
15
15
|
static getInstance(): RedisHandler;
|
|
16
16
|
init(): void;
|
|
17
17
|
connectDB(): Promise<void>;
|
|
18
|
-
cleanUp(): Promise<string>;
|
|
18
|
+
cleanUp(): Promise<string | undefined>;
|
|
19
19
|
cleanUpRoomId(roomId: string): Promise<void>;
|
|
20
20
|
setIpForRoomId(roomId: string, ipAddress: string): Promise<void>;
|
|
21
21
|
fetchIpsForRoomId(roomId: string): Promise<{
|
|
@@ -47,7 +47,9 @@ class RedisHandler {
|
|
|
47
47
|
// console.log(await this.redisClient.hGet("rooms","123"))
|
|
48
48
|
}
|
|
49
49
|
async cleanUp() {
|
|
50
|
-
|
|
50
|
+
if (ServerHandler_1.ServerHandler.getInstance().serverStartRequest.shouldCleanRedisOnStartUp) {
|
|
51
|
+
return await this.redisClient.flushDb();
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
//Clean Room Id
|
|
53
55
|
async cleanUpRoomId(roomId) {
|
|
@@ -327,7 +327,8 @@ class SFUEachRoomUserHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
329
|
if (!this.webrtcRecieveTransport || this.webrtcRecieveTransport.closed) {
|
|
330
|
-
this.
|
|
330
|
+
const router = this.recvRouter ? this.recvRouter : this.sendRouter;
|
|
331
|
+
this.webrtcRecieveTransport = await router?.createWebRtcTransport(await Constant_1.default.webrtcTransportConfiguration(this.roomHandlerDataSource.getConnectionProtocolType()));
|
|
331
332
|
if (this.webrtcRecieveTransport) {
|
|
332
333
|
this.webrtcRecieveTransport.appData.type = 'consumer';
|
|
333
334
|
this.webrtcRecieveTransport.appData.userId = participant.userId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vani-meeting-server",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Vani Meeting Server SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"helmet": "^6.0.0",
|
|
34
34
|
"mediasoup": "^3.10.8",
|
|
35
35
|
"public-ip": "4.0.3",
|
|
36
|
-
"rimraf": "^3.0.
|
|
36
|
+
"rimraf": "^3.0.3",
|
|
37
37
|
"typescript": "^4.8.3",
|
|
38
38
|
"uuid": "^9.0.0",
|
|
39
39
|
"ws": "^8.9.0"
|