@sawport/peers-caller 1.0.0-alpha.2 → 1.0.0-beta.1

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.
@@ -113,13 +113,6 @@ export declare class CallSocket {
113
113
  * Check call status
114
114
  */
115
115
  checkCallStatus(roomId: string): Promise<any>;
116
- /**
117
- * Get ICE servers from backend
118
- */
119
- getIceServers(roomId: string): Promise<{
120
- iceServers?: RTCIceServer[];
121
- error?: string;
122
- }>;
123
116
  /**
124
117
  * Handle disconnection scenarios
125
118
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CallSocket.d.ts","sourceRoot":"","sources":["../../src/core/CallSocket.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEzE,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,oBAAoB,CAAK;gBAG/B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,UAAU,SAAqB;IAOjC;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAwD9B;;OAEG;IACH,UAAU,IAAI,IAAI;IASlB;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,EAClC,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACtC,IAAI;IAaP;;OAEG;IACG,gBAAgB,CAAC,CAAC,SAAS,MAAM,eAAe,EACpD,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,U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EAAE,IAAI,GAAG,IAAI;IAI1E;;OAEG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IAOF;;OAEG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACG,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAInD;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAsB3B;;OAEG;IACH,iBAAiB;;;;;;CAQlB"}
@@ -148,10 +148,6 @@ export declare class PeersCaller extends BaseStore<CallStore> {
148
148
  * Handle errors with proper categorization
149
149
  */
150
150
  private handleError;
151
- /**
152
- * Fetch ICE servers from the backend
153
- */
154
- private fetchIceServers;
155
151
  /**
156
152
  * Forward WebRTC signaling data to the server
157
153
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PeersCaller.d.ts","sourceRoot":"","sources":["../../src/core/PeersCaller.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EAGpB,eAAe,EACf,aAAa,EACb,kBAAkB,EAGnB,MAAM,UAAU,CAAC;AAElB,qBAAa,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC;IACnD,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,YAAY,CAAsC;IA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AY,IAAI,GAAG;IA6BnB;;OAEG;IACH,OAAO,IAAI,IAAI;IAyBf;;OAEG;YACW,0BAA0B;IAyBxC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAgI5B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAmB9B;;OAEG;YACW,uBAAuB;IA6ErC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAiCpD;;OAEG;YACW,WAAW;IAgCzB;;OAEG;YACW,YAAY;IAgC1B;;OAEG;YACW,eAAe;IAmC7B;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAQpC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAa7B;;OAEG;YACW,eAAe;IAgC7B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;OAEG;IACH,OAAO,CAAC,WAAW;IAMnB;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAqC9B"}
@@ -35,7 +35,7 @@ typeof wt == "undefined" ? globalThis.process = {
35
35
  setTimeout(() => n(...e), 0);
36
36
  });
37
37
  typeof globalThis == "undefined" && (globalThis.global = globalThis);
38
- var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Be = (n, e, t) => ko(n, typeof e != "symbol" ? e + "" : e, t), Ae = (n, e, t) => new Promise((o, l) => {
38
+ var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Be = (n, e, t) => ko(n, typeof e != "symbol" ? e + "" : e, t), Ie = (n, e, t) => new Promise((o, l) => {
39
39
  var c = (f) => {
40
40
  try {
41
41
  a(t.next(f));
@@ -59,7 +59,7 @@ class Bo {
59
59
  * Connect to the WebSocket server
60
60
  */
61
61
  connect() {
62
- return Ae(this, null, function* () {
62
+ return Ie(this, null, function* () {
63
63
  return this.socket && this.socket.connected ? Promise.resolve() : (this.socket && (this.socket.removeAllListeners(), this.socket.disconnect(), this.socket = null), new Promise((e, t) => {
64
64
  try {
65
65
  this.socket = Ao(this.serverUrl, {
@@ -116,7 +116,7 @@ class Bo {
116
116
  * Emit a signaling event and wait for response
117
117
  */
118
118
  emitWithResponse(e, t, o = 1e4) {
119
- return Ae(this, null, function* () {
119
+ return Ie(this, null, function* () {
120
120
  if (!this.isConnected())
121
121
  throw new Error("Socket not connected");
122
122
  return console.log(`[CallSocket] Emitting ${e} with response:`, t), new Promise((l, c) => {
@@ -148,7 +148,7 @@ class Bo {
148
148
  * Start a new call
149
149
  */
150
150
  startCall(e) {
151
- return Ae(this, null, function* () {
151
+ return Ie(this, null, function* () {
152
152
  return this.emitWithResponse("call.start", { roomId: e });
153
153
  });
154
154
  }
@@ -156,7 +156,7 @@ class Bo {
156
156
  * Join a call room for signaling
157
157
  */
158
158
  joinRoom(e) {
159
- return Ae(this, null, function* () {
159
+ return Ie(this, null, function* () {
160
160
  return this.emitWithResponse("call.join", { roomId: e });
161
161
  });
162
162
  }
@@ -164,7 +164,7 @@ class Bo {
164
164
  * Leave a call
165
165
  */
166
166
  leaveCall(e) {
167
- return Ae(this, null, function* () {
167
+ return Ie(this, null, function* () {
168
168
  return this.emitWithResponse("call.leave", { roomId: e });
169
169
  });
170
170
  }
@@ -202,7 +202,7 @@ class Bo {
202
202
  * End call for all participants
203
203
  */
204
204
  endCallForAll(e) {
205
- return Ae(this, null, function* () {
205
+ return Ie(this, null, function* () {
206
206
  this.emit("call.end", { roomId: e });
207
207
  });
208
208
  }
@@ -210,7 +210,7 @@ class Bo {
210
210
  * Start recording
211
211
  */
212
212
  startRecording(e, t) {
213
- return Ae(this, null, function* () {
213
+ return Ie(this, null, function* () {
214
214
  return this.emitWithResponse("call.recording.start", {
215
215
  roomId: e,
216
216
  recordingId: t
@@ -227,7 +227,7 @@ class Bo {
227
227
  * End recording
228
228
  */
229
229
  endRecording(e, t) {
230
- return Ae(this, null, function* () {
230
+ return Ie(this, null, function* () {
231
231
  return this.emitWithResponse("call.recording.end", {
232
232
  roomId: e,
233
233
  recordingId: t
@@ -248,18 +248,10 @@ class Bo {
248
248
  * Check call status
249
249
  */
250
250
  checkCallStatus(e) {
251
- return Ae(this, null, function* () {
251
+ return Ie(this, null, function* () {
252
252
  return this.emitWithResponse("call.status", { roomId: e });
253
253
  });
254
254
  }
255
- /**
256
- * Get ICE servers from backend
257
- */
258
- getIceServers(e) {
259
- return Ae(this, null, function* () {
260
- return this.emitWithResponse("call.ice-servers", { roomId: e });
261
- });
262
- }
263
255
  /**
264
256
  * Handle disconnection scenarios
265
257
  */
@@ -958,7 +950,7 @@ function Ye() {
958
950
  if (typeof s == "string")
959
951
  return me(s, r);
960
952
  if (M.isView(s))
961
- return ge(s);
953
+ return pe(s);
962
954
  if (s == null)
963
955
  throw new TypeError(
964
956
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
@@ -1017,7 +1009,7 @@ function Ye() {
1017
1009
  i[m] = s[m] & 255;
1018
1010
  return i;
1019
1011
  }
1020
- function ge(s) {
1012
+ function pe(s) {
1021
1013
  if (Pe(s, g)) {
1022
1014
  const r = new g(s);
1023
1015
  return ie(r.buffer, r.byteOffset, r.byteLength);
@@ -1615,13 +1607,13 @@ function Ye() {
1615
1607
  }, k.prototype.writeFloatBE = function(r, i, m) {
1616
1608
  return Oe(this, r, i, !1, m);
1617
1609
  };
1618
- function Ie(s, r, i, m, T) {
1610
+ function Te(s, r, i, m, T) {
1619
1611
  return r = +r, i = i >>> 0, T || Fe(s, r, i, 8), _.write(s, r, i, m, 52, 8), i + 8;
1620
1612
  }
1621
1613
  k.prototype.writeDoubleLE = function(r, i, m) {
1622
- return Ie(this, r, i, !0, m);
1614
+ return Te(this, r, i, !0, m);
1623
1615
  }, k.prototype.writeDoubleBE = function(r, i, m) {
1624
- return Ie(this, r, i, !1, m);
1616
+ return Te(this, r, i, !1, m);
1625
1617
  }, k.prototype.copy = function(r, i, m, T) {
1626
1618
  if (!k.isBuffer(r)) throw new TypeError("argument should be a Buffer");
1627
1619
  if (m || (m = 0), !T && T !== 0 && (T = this.length), i >= r.length && (i = r.length), i || (i = 0), T > 0 && T < m && (T = m), T === m || r.length === 0 || this.length === 0) return 0;
@@ -2593,7 +2585,7 @@ function oo() {
2593
2585
  "%URIErrorPrototype%": ["URIError", "prototype"],
2594
2586
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2595
2587
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2596
- }, ce = Xe(), ge = /* @__PURE__ */ io(), ie = ce.call(J, Array.prototype.concat), _e = ce.call(F, Array.prototype.splice), he = ce.call(J, String.prototype.replace), L = ce.call(J, String.prototype.slice), $ = ce.call(J, RegExp.prototype.exec), z = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, B = function(G) {
2588
+ }, ce = Xe(), pe = /* @__PURE__ */ io(), ie = ce.call(J, Array.prototype.concat), _e = ce.call(F, Array.prototype.splice), he = ce.call(J, String.prototype.replace), L = ce.call(J, String.prototype.slice), $ = ce.call(J, RegExp.prototype.exec), z = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, B = function(G) {
2597
2589
  var V = L(G, 0, 1), d = L(G, -1);
2598
2590
  if (V === "%" && d !== "%")
2599
2591
  throw new E("invalid intrinsic syntax, expected closing `%`");
@@ -2605,7 +2597,7 @@ function oo() {
2605
2597
  }), p;
2606
2598
  }, O = function(G, V) {
2607
2599
  var d = G, p;
2608
- if (ge(me, d) && (p = me[d], d = "%" + p[0] + "%"), ge(ee, d)) {
2600
+ if (pe(me, d) && (p = me[d], d = "%" + p[0] + "%"), pe(ee, d)) {
2609
2601
  var x = ee[d];
2610
2602
  if (x === k && (x = le(d)), typeof x == "undefined" && !V)
2611
2603
  throw new a("intrinsic " + G + " exists, but is not available. Please file an issue!");
@@ -2630,7 +2622,7 @@ function oo() {
2630
2622
  var ye = d[q], oe = L(ye, 0, 1), ue = L(ye, -1);
2631
2623
  if ((oe === '"' || oe === "'" || oe === "`" || ue === '"' || ue === "'" || ue === "`") && oe !== ue)
2632
2624
  throw new E("property names with quotes must have matching quotes");
2633
- if ((ye === "constructor" || !ve) && (X = !0), p += "." + ye, H = "%" + p + "%", ge(ee, H))
2625
+ if ((ye === "constructor" || !ve) && (X = !0), p += "." + ye, H = "%" + p + "%", pe(ee, H))
2634
2626
  K = ee[H];
2635
2627
  else if (K != null) {
2636
2628
  if (!(ye in K)) {
@@ -2642,7 +2634,7 @@ function oo() {
2642
2634
  var Ce = b(K, ye);
2643
2635
  ve = !!Ce, ve && "get" in Ce && !("originalValue" in Ce.get) ? K = Ce.get : K = K[ye];
2644
2636
  } else
2645
- ve = ge(K, ye), K = K[ye];
2637
+ ve = pe(K, ye), K = K[ye];
2646
2638
  ve && !X && (ee[H] = K);
2647
2639
  }
2648
2640
  }
@@ -3175,10 +3167,10 @@ function ba() {
3175
3167
  return f(q) === "[object WeakSet]";
3176
3168
  }
3177
3169
  ce.working = typeof WeakSet != "undefined" && ce(/* @__PURE__ */ new WeakSet());
3178
- function ge(q) {
3170
+ function pe(q) {
3179
3171
  return ce(q);
3180
3172
  }
3181
- n.isWeakSet = ge;
3173
+ n.isWeakSet = pe;
3182
3174
  function ie(q) {
3183
3175
  return f(q) === "[object ArrayBuffer]";
3184
3176
  }
@@ -3460,7 +3452,7 @@ function so() {
3460
3452
  }
3461
3453
  function y(L, $, z, Y, B) {
3462
3454
  for (var O = [], D = 0, G = $.length; D < G; ++D)
3463
- ge($, String(D)) ? O.push(I(
3455
+ pe($, String(D)) ? O.push(I(
3464
3456
  L,
3465
3457
  $,
3466
3458
  z,
@@ -3481,7 +3473,7 @@ function so() {
3481
3473
  }
3482
3474
  function I(L, $, z, Y, B, O) {
3483
3475
  var D, G, V;
3484
- if (V = Object.getOwnPropertyDescriptor($, B) || { value: $[B] }, V.get ? V.set ? G = L.stylize("[Getter/Setter]", "special") : G = L.stylize("[Getter]", "special") : V.set && (G = L.stylize("[Setter]", "special")), ge(Y, B) || (D = "[" + B + "]"), G || (L.seen.indexOf(V.value) < 0 ? (P(z) ? G = A(L, V.value, null) : G = A(L, V.value, z - 1), G.indexOf(`
3476
+ if (V = Object.getOwnPropertyDescriptor($, B) || { value: $[B] }, V.get ? V.set ? G = L.stylize("[Getter/Setter]", "special") : G = L.stylize("[Getter]", "special") : V.set && (G = L.stylize("[Setter]", "special")), pe(Y, B) || (D = "[" + B + "]"), G || (L.seen.indexOf(V.value) < 0 ? (P(z) ? G = A(L, V.value, null) : G = A(L, V.value, z - 1), G.indexOf(`
3485
3477
  `) > -1 && (O ? G = G.split(`
3486
3478
  `).map(function(d) {
3487
3479
  return " " + d;
@@ -3601,7 +3593,7 @@ function so() {
3601
3593
  L[z[Y]] = $[z[Y]];
3602
3594
  return L;
3603
3595
  };
3604
- function ge(L, $) {
3596
+ function pe(L, $) {
3605
3597
  return Object.prototype.hasOwnProperty.call(L, $);
3606
3598
  }
3607
3599
  var ie = typeof Symbol != "undefined" ? Symbol("util.promisify.custom") : void 0;
@@ -4137,9 +4129,9 @@ function uo() {
4137
4129
  }
4138
4130
  }
4139
4131
  function ce(B, O, D, G) {
4140
- D || ge(B, O), O.pendingcb--, G(), $(B, O);
4132
+ D || pe(B, O), O.pendingcb--, G(), $(B, O);
4141
4133
  }
4142
- function ge(B, O) {
4134
+ function pe(B, O) {
4143
4135
  O.length === 0 && O.needDrain && (O.needDrain = !1, B.emit("drain"));
4144
4136
  }
4145
4137
  function ie(B, O) {
@@ -4741,14 +4733,14 @@ function fo() {
4741
4733
  var x = p.decoder.end();
4742
4734
  x && x.length && (p.buffer.push(x), p.length += p.objectMode ? 1 : x.length);
4743
4735
  }
4744
- p.ended = !0, p.sync ? ce(d) : (p.needReadable = !1, p.emittedReadable || (p.emittedReadable = !0, ge(d)));
4736
+ p.ended = !0, p.sync ? ce(d) : (p.needReadable = !1, p.emittedReadable || (p.emittedReadable = !0, pe(d)));
4745
4737
  }
4746
4738
  }
4747
4739
  function ce(d) {
4748
4740
  var p = d._readableState;
4749
- u("emitReadable", p.needReadable, p.emittedReadable), p.needReadable = !1, p.emittedReadable || (u("emitReadable", p.flowing), p.emittedReadable = !0, n.nextTick(ge, d));
4741
+ u("emitReadable", p.needReadable, p.emittedReadable), p.needReadable = !1, p.emittedReadable || (u("emitReadable", p.flowing), p.emittedReadable = !0, n.nextTick(pe, d));
4750
4742
  }
4751
- function ge(d) {
4743
+ function pe(d) {
4752
4744
  var p = d._readableState;
4753
4745
  u("emitReadable_", p.destroyed, p.length, p.ended), !p.destroyed && (p.length || p.ended) && (d.emit("readable"), p.emittedReadable = !1), p.needReadable = !p.flowing && !p.ended && p.length <= p.highWaterMark, B(d);
4754
4746
  }
@@ -4781,8 +4773,8 @@ function fo() {
4781
4773
  H.pipesCount += 1, u("pipe count=%d opts=%j", H.pipesCount, p);
4782
4774
  var K = (!p || p.end !== !1) && d !== n.stdout && d !== n.stderr, X = K ? q : Oe;
4783
4775
  H.endEmitted ? n.nextTick(X) : x.once("end", X), d.on("unpipe", Q);
4784
- function Q(Ie, Se) {
4785
- u("onunpipe"), Ie === x && Se && Se.hasUnpiped === !1 && (Se.hasUnpiped = !0, oe());
4776
+ function Q(Te, Se) {
4777
+ u("onunpipe"), Te === x && Se && Se.hasUnpiped === !1 && (Se.hasUnpiped = !0, oe());
4786
4778
  }
4787
4779
  function q() {
4788
4780
  u("onend"), d.end();
@@ -4794,13 +4786,13 @@ function fo() {
4794
4786
  u("cleanup"), d.removeListener("close", De), d.removeListener("finish", Fe), d.removeListener("drain", ve), d.removeListener("error", Ce), d.removeListener("unpipe", Q), x.removeListener("end", q), x.removeListener("end", Oe), x.removeListener("data", ue), ye = !0, H.awaitDrain && (!d._writableState || d._writableState.needDrain) && ve();
4795
4787
  }
4796
4788
  x.on("data", ue);
4797
- function ue(Ie) {
4789
+ function ue(Te) {
4798
4790
  u("ondata");
4799
- var Se = d.write(Ie);
4791
+ var Se = d.write(Te);
4800
4792
  u("dest.write", Se), Se === !1 && ((H.pipesCount === 1 && H.pipes === d || H.pipesCount > 1 && V(H.pipes, d) !== -1) && !ye && (u("false write response, pause", H.awaitDrain), H.awaitDrain++), x.pause());
4801
4793
  }
4802
- function Ce(Ie) {
4803
- u("onerror", Ie), Oe(), d.removeListener("error", Ce), t(d, "error") === 0 && v(d, Ie);
4794
+ function Ce(Te) {
4795
+ u("onerror", Te), Oe(), d.removeListener("error", Ce), t(d, "error") === 0 && v(d, Te);
4804
4796
  }
4805
4797
  M(d, "error", Ce);
4806
4798
  function De() {
@@ -6934,7 +6926,7 @@ var gs = Object.defineProperty, ys = Object.defineProperties, ms = Object.getOwn
6934
6926
  for (var t of Yi(e))
6935
6927
  bs.call(e, t) && Zr(n, t, e[t]);
6936
6928
  return n;
6937
- }, _s = (n, e) => ys(n, ms(e)), Re = (n, e, t) => Zr(n, typeof e != "symbol" ? e + "" : e, t), pe = (n, e, t) => new Promise((o, l) => {
6929
+ }, _s = (n, e) => ys(n, ms(e)), Re = (n, e, t) => Zr(n, typeof e != "symbol" ? e + "" : e, t), ge = (n, e, t) => new Promise((o, l) => {
6938
6930
  var c = (f) => {
6939
6931
  try {
6940
6932
  a(t.next(f));
@@ -6979,13 +6971,13 @@ class Ss extends yo {
6979
6971
  * Initialize the PeersCaller and establish WebSocket connection
6980
6972
  */
6981
6973
  initialize() {
6982
- return pe(this, null, function* () {
6974
+ return ge(this, null, function* () {
6983
6975
  try {
6984
6976
  if (console.log("[PeersCaller] Initializing..."), this.isInitialized) {
6985
6977
  console.warn("[PeersCaller] Already initialized");
6986
6978
  return;
6987
6979
  }
6988
- yield this.socket.connect(), yield this.fetchIceServers(), this.setupSocketListeners(), yield this.initializeLocalParticipant(), this.isInitialized = !0, this.state.setCallStatus("idle"), console.log(
6980
+ yield this.socket.connect(), this.setupSocketListeners(), yield this.initializeLocalParticipant(), this.isInitialized = !0, this.state.setCallStatus("idle"), console.log(
6989
6981
  "[PeersCaller] Initialization completed successfully (ready to start/join call)"
6990
6982
  );
6991
6983
  } catch (e) {
@@ -6997,7 +6989,7 @@ class Ss extends yo {
6997
6989
  * Start a new call
6998
6990
  */
6999
6991
  startCall() {
7000
- return pe(this, arguments, function* (e = this.config.mediaConfig) {
6992
+ return ge(this, arguments, function* (e = this.config.mediaConfig) {
7001
6993
  var t, o;
7002
6994
  try {
7003
6995
  if (console.log("[PeersCaller] Starting call..."), this.isInitialized || (yield this.initialize()), this.localParticipant && !this.localParticipant.getCurrentStream()) {
@@ -7027,7 +7019,7 @@ class Ss extends yo {
7027
7019
  * Join an existing call
7028
7020
  */
7029
7021
  joinCall() {
7030
- return pe(this, arguments, function* (e = this.config.mediaConfig) {
7022
+ return ge(this, arguments, function* (e = this.config.mediaConfig) {
7031
7023
  try {
7032
7024
  console.log("[PeersCaller] Joining call..."), this.isInitialized || (yield this.initialize());
7033
7025
  const t = yield this.checkCallStatus();
@@ -7062,7 +7054,7 @@ class Ss extends yo {
7062
7054
  * This sends a request to the server to end the call for all participants
7063
7055
  */
7064
7056
  endCall() {
7065
- return pe(this, null, function* () {
7057
+ return ge(this, null, function* () {
7066
7058
  try {
7067
7059
  console.log("[PeersCaller] Ending call..."), this.recorder && this.state.isRecording && (yield this.stopRecording());
7068
7060
  try {
@@ -7083,7 +7075,7 @@ class Ss extends yo {
7083
7075
  * Leave the call gracefully (with server acknowledgement)
7084
7076
  */
7085
7077
  leaveCall() {
7086
- return pe(this, null, function* () {
7078
+ return ge(this, null, function* () {
7087
7079
  try {
7088
7080
  console.log("[PeersCaller] Leaving call..."), console.log("[PeersCaller] Leaving call for room:", this.config.roomId);
7089
7081
  const e = yield this.socket.leaveCall(this.config.roomId);
@@ -7114,7 +7106,7 @@ class Ss extends yo {
7114
7106
  * Start screen sharing
7115
7107
  */
7116
7108
  startScreenShare() {
7117
- return pe(this, null, function* () {
7109
+ return ge(this, null, function* () {
7118
7110
  try {
7119
7111
  if (!this.localParticipant)
7120
7112
  throw new Error("Local participant not initialized");
@@ -7131,7 +7123,7 @@ class Ss extends yo {
7131
7123
  * Stop screen sharing
7132
7124
  */
7133
7125
  stopScreenShare() {
7134
- return pe(this, null, function* () {
7126
+ return ge(this, null, function* () {
7135
7127
  try {
7136
7128
  if (!this.localParticipant)
7137
7129
  throw new Error("Local participant not initialized");
@@ -7145,7 +7137,7 @@ class Ss extends yo {
7145
7137
  * Start recording the call
7146
7138
  */
7147
7139
  startRecording(e, t) {
7148
- return pe(this, null, function* () {
7140
+ return ge(this, null, function* () {
7149
7141
  var o;
7150
7142
  try {
7151
7143
  if (console.log("[PeersCaller] Starting recording..."), this.state.isRecording) {
@@ -7193,7 +7185,7 @@ class Ss extends yo {
7193
7185
  * Stop recording
7194
7186
  */
7195
7187
  stopRecording() {
7196
- return pe(this, null, function* () {
7188
+ return ge(this, null, function* () {
7197
7189
  try {
7198
7190
  if (console.log("[PeersCaller] Stopping recording..."), !this.recorder || !this.state.isRecording) {
7199
7191
  console.warn("[PeersCaller] No active recording to stop");
@@ -7262,7 +7254,7 @@ class Ss extends yo {
7262
7254
  * Initialize local participant
7263
7255
  */
7264
7256
  initializeLocalParticipant() {
7265
- return pe(this, null, function* () {
7257
+ return ge(this, null, function* () {
7266
7258
  this.localParticipant = new Vi(
7267
7259
  this.config.userId,
7268
7260
  {
@@ -7376,7 +7368,7 @@ class Ss extends yo {
7376
7368
  * Handle participant joined
7377
7369
  */
7378
7370
  handleParticipantJoined(e) {
7379
- return pe(this, null, function* () {
7371
+ return ge(this, null, function* () {
7380
7372
  var t, o;
7381
7373
  try {
7382
7374
  if (e === this.config.userId || this.participants.has(e))
@@ -7444,7 +7436,7 @@ class Ss extends yo {
7444
7436
  * Check call status for the conversation
7445
7437
  */
7446
7438
  checkCallStatus() {
7447
- return pe(this, null, function* () {
7439
+ return ge(this, null, function* () {
7448
7440
  try {
7449
7441
  if (console.log("[PeersCaller] Checking call status..."), !this.socket.isConnected())
7450
7442
  throw new Error("Socket not connected");
@@ -7465,7 +7457,7 @@ class Ss extends yo {
7465
7457
  * Handle WebRTC offer
7466
7458
  */
7467
7459
  handleOffer(e, t) {
7468
- return pe(this, null, function* () {
7460
+ return ge(this, null, function* () {
7469
7461
  try {
7470
7462
  if (!this.localParticipant) {
7471
7463
  console.warn(
@@ -7489,7 +7481,7 @@ class Ss extends yo {
7489
7481
  * Handle WebRTC answer
7490
7482
  */
7491
7483
  handleAnswer(e, t) {
7492
- return pe(this, null, function* () {
7484
+ return ge(this, null, function* () {
7493
7485
  try {
7494
7486
  if (!this.localParticipant) {
7495
7487
  console.warn(
@@ -7513,7 +7505,7 @@ class Ss extends yo {
7513
7505
  * Handle ICE candidate
7514
7506
  */
7515
7507
  handleCandidate(e, t) {
7516
- return pe(this, null, function* () {
7508
+ return ge(this, null, function* () {
7517
7509
  try {
7518
7510
  if (!this.localParticipant) {
7519
7511
  console.warn(
@@ -7556,7 +7548,7 @@ class Ss extends yo {
7556
7548
  * Handle call ended notification from server
7557
7549
  */
7558
7550
  handleCallEnded(e) {
7559
- return pe(this, null, function* () {
7551
+ return ge(this, null, function* () {
7560
7552
  var t, o;
7561
7553
  console.log(
7562
7554
  `[PeersCaller] Call ended by ${e.endedBy}, reason: ${e.reason}`
@@ -7597,31 +7589,6 @@ class Ss extends yo {
7597
7589
  var o, l;
7598
7590
  console.error(`[PeersCaller] ${e}: ${t}`), this.state.setError(e, t), (l = (o = this.callbacks).onError) == null || l.call(o, e, t);
7599
7591
  }
7600
- /**
7601
- * Fetch ICE servers from the backend
7602
- */
7603
- fetchIceServers() {
7604
- return pe(this, null, function* () {
7605
- try {
7606
- console.log("[PeersCaller] Fetching ICE servers from backend...");
7607
- const e = yield this.socket.getIceServers(this.roomId);
7608
- if (e.error) {
7609
- console.warn(
7610
- "[PeersCaller] Failed to fetch ICE servers from backend:",
7611
- e.error
7612
- ), console.log("[PeersCaller] Using default ICE servers");
7613
- return;
7614
- }
7615
- e.iceServers && e.iceServers.length > 0 ? (this.iceServers = e.iceServers, console.log(
7616
- `[PeersCaller] Successfully fetched ${e.iceServers.length} ICE servers from backend for room ${this.roomId}`
7617
- )) : console.log(
7618
- "[PeersCaller] No ICE servers received from backend, using defaults"
7619
- );
7620
- } catch (e) {
7621
- console.warn("[PeersCaller] Error fetching ICE servers:", e), console.log("[PeersCaller] Using default ICE servers");
7622
- }
7623
- });
7624
- }
7625
7592
  /**
7626
7593
  * Forward WebRTC signaling data to the server
7627
7594
  */
@@ -7655,7 +7622,7 @@ class Ss extends yo {
7655
7622
  }
7656
7623
  }
7657
7624
  }
7658
- var Te = (n, e, t) => new Promise((o, l) => {
7625
+ var Ae = (n, e, t) => new Promise((o, l) => {
7659
7626
  var c = (f) => {
7660
7627
  try {
7661
7628
  a(t.next(f));
@@ -7674,7 +7641,7 @@ var Te = (n, e, t) => new Promise((o, l) => {
7674
7641
  function qs(n) {
7675
7642
  const [e, t] = Ne(null), [o, l] = Ne(!1), c = Io(!1), E = we.getState(), a = Object.values(
7676
7643
  we((g) => g.participants)
7677
- ), f = we((g) => g.localParticipant), u = we((g) => g.callStatus === "connected"), w = we((g) => g.isRecording), A = we((g) => g.error), C = be(() => Te(null, null, function* () {
7644
+ ), f = we((g) => g.localParticipant), u = we((g) => g.callStatus === "connected"), w = we((g) => g.isRecording), A = we((g) => g.error), C = be(() => Ae(null, null, function* () {
7678
7645
  if (!(c.current || e))
7679
7646
  try {
7680
7647
  c.current = !0;
@@ -7684,7 +7651,7 @@ function qs(n) {
7684
7651
  throw console.error("[useVideoCall] Failed to initialize:", g), c.current = !1, g;
7685
7652
  }
7686
7653
  }), [n, e]), j = be(
7687
- (g) => Te(null, null, function* () {
7654
+ (g) => Ae(null, null, function* () {
7688
7655
  if (!e) {
7689
7656
  yield C();
7690
7657
  return;
@@ -7693,7 +7660,7 @@ function qs(n) {
7693
7660
  }),
7694
7661
  [e, C]
7695
7662
  ), y = be(
7696
- (g) => Te(null, null, function* () {
7663
+ (g) => Ae(null, null, function* () {
7697
7664
  if (!e) {
7698
7665
  yield C();
7699
7666
  return;
@@ -7713,19 +7680,19 @@ function qs(n) {
7713
7680
  e == null || e.toggleVideo(g);
7714
7681
  },
7715
7682
  [e]
7716
- ), b = be(() => Te(null, null, function* () {
7683
+ ), b = be(() => Ae(null, null, function* () {
7717
7684
  if (!e) throw new Error("PeersCaller not initialized");
7718
7685
  return e.startScreenShare();
7719
- }), [e]), P = be(() => Te(null, null, function* () {
7686
+ }), [e]), P = be(() => Ae(null, null, function* () {
7720
7687
  if (!e) throw new Error("PeersCaller not initialized");
7721
7688
  return e.stopScreenShare();
7722
7689
  }), [e]), _ = be(
7723
- (g) => Te(null, null, function* () {
7690
+ (g) => Ae(null, null, function* () {
7724
7691
  if (!e) throw new Error("PeersCaller not initialized");
7725
7692
  return e.startRecording(g);
7726
7693
  }),
7727
7694
  [e]
7728
- ), R = be(() => Te(null, null, function* () {
7695
+ ), R = be(() => Ae(null, null, function* () {
7729
7696
  if (!e) throw new Error("PeersCaller not initialized");
7730
7697
  return e.stopRecording();
7731
7698
  }), [e]), v = be(() => {
@@ -7800,7 +7767,7 @@ function Ws() {
7800
7767
  };
7801
7768
  }
7802
7769
  function Gs() {
7803
- const [n, e] = Ne({ videoDevices: [], audioDevices: [] }), [t, o] = Ne({ camera: null, microphone: null }), l = be(() => Te(null, null, function* () {
7770
+ const [n, e] = Ne({ videoDevices: [], audioDevices: [] }), [t, o] = Ne({ camera: null, microphone: null }), l = be(() => Ae(null, null, function* () {
7804
7771
  try {
7805
7772
  const a = yield navigator.mediaDevices.enumerateDevices();
7806
7773
  e({
@@ -7810,7 +7777,7 @@ function Gs() {
7810
7777
  } catch (a) {
7811
7778
  console.error("[useMediaDevices] Failed to get devices:", a);
7812
7779
  }
7813
- }), []), c = be(() => Te(null, null, function* () {
7780
+ }), []), c = be(() => Ae(null, null, function* () {
7814
7781
  try {
7815
7782
  if ("permissions" in navigator) {
7816
7783
  const a = yield navigator.permissions.query({
@@ -7826,7 +7793,7 @@ function Gs() {
7826
7793
  } catch (a) {
7827
7794
  console.error("[useMediaDevices] Failed to check permissions:", a);
7828
7795
  }
7829
- }), []), E = be(() => Te(null, null, function* () {
7796
+ }), []), E = be(() => Ae(null, null, function* () {
7830
7797
  try {
7831
7798
  return (yield navigator.mediaDevices.getUserMedia({
7832
7799
  video: !0,