vani-meeting-server 2.3.5 → 2.3.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.
@@ -146,9 +146,13 @@ class SFUEachRoomHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
146
146
  const indexForRecRouter = (this.roomPaticipants.size % this.recvRouter.length);
147
147
  const roomUser = new SFUEachRoomUserHandler_1.SFUEachRoomUserHandler(participant, this.sendRouter, this.recvRouter[indexForRecRouter], this);
148
148
  this.roomPaticipants.set(participant.userId, roomUser);
149
+ console.log("this.roomPaticipants", this.roomPaticipants);
149
150
  return roomUser;
150
151
  }
151
152
  }
153
+ else {
154
+ console.log("this.sendRouter or recv router not found ", this.sendRouter, this.recvRouter);
155
+ }
152
156
  }
153
157
  async onGetRTPCapabilities(participant) {
154
158
  if (this.workers) {
@@ -189,8 +193,10 @@ class SFUEachRoomHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
189
193
  }
190
194
  }
191
195
  if (this.sendRouter) {
196
+ console.log("Create Recv Router");
192
197
  if (workers.length === 1) {
193
198
  this.recvRouter.push(this.sendRouter);
199
+ console.log("Recv Router is same as sender router");
194
200
  }
195
201
  else {
196
202
  while (this.recvRouter.length < (workers.length - 1)) { // Dont create on send worker
@@ -200,6 +206,7 @@ class SFUEachRoomHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
200
206
  continue;
201
207
  }
202
208
  this.recvRouter.push(await worker.createRouter({ mediaCodecs: Constant_1.mediaCodecs }));
209
+ console.log("Recv Router created");
203
210
  }
204
211
  }
205
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",