@vindral/web-sdk 4.8.2-9-gec246501 → 4.8.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.
package/api-client.js CHANGED
@@ -1,2 +1 @@
1
- import { t as e } from "./BylishAR.js";
2
- export { e as ApiClient };
1
+ export { t as ApiClient } from "./BeCY4GvT.js";
package/cast-sender.d.ts CHANGED
@@ -299,7 +299,14 @@ interface Options {
299
299
  * false to stop reconnecting. It can also return a promise with true or false if it needs
300
300
  * to make any async calls before determining wether to reconnect.
301
301
  *
302
- * The default reconnect handler allows 30 reconnects before stopping.
302
+ * The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
303
+ * rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
304
+ * only the failed reconnects since the handler last answered. The first such failure of a player instance is
305
+ * reported as an uncaught error, with the original as its `cause`.
306
+ *
307
+ * Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
308
+ * a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
309
+ * return your own answer.
303
310
  *
304
311
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
305
312
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
package/cast-sender.js CHANGED
@@ -1,2 +1 @@
1
- import { t as e } from "./daJ21AEO.js";
2
- export { e as CastSender };
1
+ export { t as CastSender } from "./DHV7WJZT.js";
package/core.d.ts CHANGED
@@ -408,7 +408,14 @@ export interface Options {
408
408
  * false to stop reconnecting. It can also return a promise with true or false if it needs
409
409
  * to make any async calls before determining wether to reconnect.
410
410
  *
411
- * The default reconnect handler allows 30 reconnects before stopping.
411
+ * The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
412
+ * rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
413
+ * only the failed reconnects since the handler last answered. The first such failure of a player instance is
414
+ * reported as an uncaught error, with the original as its `cause`.
415
+ *
416
+ * Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
417
+ * a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
418
+ * return your own answer.
412
419
  *
413
420
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
414
421
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
package/core.js CHANGED
@@ -1,2 +1 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./C1ebXKEm.js";
2
- export { s as AUTHENTICATION_EXPIRED_CODE, i as AUTHENTICATION_FAILED_CODE, e as CHANNEL_NOT_FOUND_CODE, o as CHANNEL_NOT_LIVE_CODE, c as CONNECTION_FAILED_AFTER_RETRIES_CODE, t as CONNECTION_FAILED_CODE, a as DISCONNECTED_BY_EDGE, u as INACTIVITY_CODE, n as NO_INCOMING_DATA, l as Vindral, r as VindralError };
1
+ export { o as AUTHENTICATION_EXPIRED_CODE, s as AUTHENTICATION_FAILED_CODE, c as CHANNEL_NOT_FOUND_CODE, l as CHANNEL_NOT_LIVE_CODE, u as CONNECTION_FAILED_AFTER_RETRIES_CODE, d as CONNECTION_FAILED_CODE, f as DISCONNECTED_BY_EDGE, p as INACTIVITY_CODE, m as NO_INCOMING_DATA, t as Vindral, h as VindralError } from "./CnefSzun.js";
package/legacy.d.ts CHANGED
@@ -411,7 +411,14 @@ export interface Options {
411
411
  * false to stop reconnecting. It can also return a promise with true or false if it needs
412
412
  * to make any async calls before determining wether to reconnect.
413
413
  *
414
- * The default reconnect handler allows 30 reconnects before stopping.
414
+ * The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
415
+ * rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
416
+ * only the failed reconnects since the handler last answered. The first such failure of a player instance is
417
+ * reported as an uncaught error, with the original as its `cause`.
418
+ *
419
+ * Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
420
+ * a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
421
+ * return your own answer.
415
422
  *
416
423
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
417
424
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.