@signalwire/js 3.19.1 → 3.19.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.
package/dist/index.js CHANGED
@@ -1393,7 +1393,7 @@ var JWTSession = class extends import_core14.BaseJWTSession {
1393
1393
  this.options = options;
1394
1394
  __publicField(this, "WebSocketConstructor", WebSocket);
1395
1395
  __publicField(this, "CloseEventConstructor", CloseEvent);
1396
- __publicField(this, "agent", "@signalwire/js/browser/3.19.1");
1396
+ __publicField(this, "agent", "@signalwire/js/browser/3.19.2");
1397
1397
  }
1398
1398
  get allowReattach() {
1399
1399
  var _a;
@@ -1909,6 +1909,12 @@ var UNSAFE_PROP_ACCESS = [
1909
1909
  "promote",
1910
1910
  "demote"
1911
1911
  ];
1912
+ var REQUIRED_EVENTS = [
1913
+ "member.joined",
1914
+ "layout.changed"
1915
+ ];
1916
+ var noop2 = () => {
1917
+ };
1912
1918
  var RoomSession = function(roomOptions) {
1913
1919
  const _a = roomOptions, {
1914
1920
  audio: audioFromConstructor = true,
@@ -2017,6 +2023,7 @@ ${JSON.stringify(params, null, 2)}
2017
2023
  resolve(room);
2018
2024
  });
2019
2025
  reattachManager.init();
2026
+ REQUIRED_EVENTS.forEach((event) => room.once(event, noop2));
2020
2027
  yield room.join();
2021
2028
  } catch (error) {
2022
2029
  (0, import_core21.getLogger)().error("RoomSession Join", error);