@unboundcx/video-sdk-client 2.0.1 → 2.0.2

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.
@@ -302,8 +302,15 @@ export class VideoMeetingClient extends EventEmitter {
302
302
  // Waiting room events
303
303
  this.connection.onServerEvent("room.waitingRoom.admit", (data) => {
304
304
  this.logger.info("Admitted from waiting room", data);
305
+ // The host approved this user — flip the inWaitingRoom flag and
306
+ // notify consumers. Do NOT transition state to "in-meeting" here:
307
+ // approval is not the same as joining. The actual SFU join (with
308
+ // mediasoup transports) happens when the user explicitly calls
309
+ // joinMeeting(). Previously this handler auto-set state, which
310
+ // permanently broke the public joinMeeting() afterward (its
311
+ // precondition is `state === "waiting-room"`) and left the user
312
+ // in a half-state with no transports.
305
313
  this.inWaitingRoom = false;
306
- this._setState("in-meeting");
307
314
  this.emit("waitingRoom:admitted", data);
308
315
  });
309
316
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/video-sdk-client",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Framework-agnostic WebRTC video meeting SDK powered by mediasoup",
5
5
  "type": "module",
6
6
  "main": "index.js",