vani-meeting-server 2.3.1 → 2.3.3

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.
@@ -27,10 +27,10 @@ class ServerHandler {
27
27
  await this.rediHandler.connectDB();
28
28
  await this.rediHandler.cleanUp();
29
29
  console.info("On Redis Connected");
30
+ this.sfuHandler = SFUHandler_1.SFUHandler.getInstance();
31
+ await this.sfuHandler.init();
30
32
  this.webSocketHandler = new WebSocketHandler_1.WebSocketHandler();
31
33
  this.webSocketHandler.connect();
32
- this.sfuHandler = SFUHandler_1.SFUHandler.getInstance();
33
- this.sfuHandler.init();
34
34
  }
35
35
  async startPlainTransportForBroadcasting(plainTransportPayload, forRoomid) {
36
36
  this.sfuHandler?.startPlainTransportForBroadcasting(plainTransportPayload, forRoomid);
@@ -141,7 +141,7 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
141
141
  this.subscribeToRedisMessages();
142
142
  }
143
143
  async onSocketClosed(event) {
144
- console.log("Socket close code", event);
144
+ console.log("Socket close code", event, this.selfParticipant);
145
145
  if (String(event).includes("1005") || String(event).includes("1001") || String(event).includes("1000")) {
146
146
  this.onUserLeft();
147
147
  }
@@ -258,6 +258,7 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
258
258
  }
259
259
  }
260
260
  async onConfig(data) {
261
+ console.log("onConfig", data);
261
262
  if (data.participant) {
262
263
  this.selfParticipant = Object.assign(new Participant_1.Participant(), data.participant);
263
264
  this.selfParticipant.serverIpAddress = await Constant_1.default.getPublicIp();
@@ -26,7 +26,7 @@ class WebSocketHandler {
26
26
  }
27
27
  connect() {
28
28
  this.wss.on("connection", (socket, req) => {
29
- console.log("On New Connection");
29
+ console.log("On New Connection", req.url);
30
30
  const eachSocketConnection = new EachSocketConnectionHandler_1.EachSocketConnectionHandler(socket, req.url ? req.url.includes('reconnect') : false);
31
31
  eachSocketConnection.init();
32
32
  eachSocketConnection.onDestoryCallback((socketConnection) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",