@lark-sh/client 0.1.25 → 0.1.26

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.
@@ -7,7 +7,7 @@ import {
7
7
  ServerValue,
8
8
  generatePushId,
9
9
  isVolatilePath
10
- } from "../chunk-LCCMBY4S.mjs";
10
+ } from "../chunk-D2DMNW7C.mjs";
11
11
 
12
12
  // src/fb-v8/index.ts
13
13
  var DatabaseReference = class _DatabaseReference {
package/dist/index.d.mts CHANGED
@@ -569,8 +569,8 @@ interface ConnectOptions {
569
569
  domain?: string;
570
570
  /**
571
571
  * Transport type preference.
572
- * - 'auto': Try WebTransport first, fall back to WebSocket (default)
573
- * - 'websocket': Force WebSocket only
572
+ * - 'websocket': WebSocket only (default)
573
+ * - 'auto': Try WebTransport first, fall back to WebSocket
574
574
  * - 'webtransport': Force WebTransport only (fails if unavailable)
575
575
  */
576
576
  transport?: TransportType;
package/dist/index.d.ts CHANGED
@@ -569,8 +569,8 @@ interface ConnectOptions {
569
569
  domain?: string;
570
570
  /**
571
571
  * Transport type preference.
572
- * - 'auto': Try WebTransport first, fall back to WebSocket (default)
573
- * - 'websocket': Force WebSocket only
572
+ * - 'websocket': WebSocket only (default)
573
+ * - 'auto': Try WebTransport first, fall back to WebSocket
574
574
  * - 'webtransport': Force WebTransport only (fails if unavailable)
575
575
  */
576
576
  transport?: TransportType;
package/dist/index.js CHANGED
@@ -337,7 +337,7 @@ function wsUrlToWtUrl(wsUrl) {
337
337
  return url.toString();
338
338
  }
339
339
  async function createTransport(wsUrl, transportOptions, options = {}) {
340
- const preferredType = options.transport || "auto";
340
+ const preferredType = options.transport || "websocket";
341
341
  const shouldTryWebTransport = (preferredType === "auto" || preferredType === "webtransport") && isWebTransportAvailable();
342
342
  if (preferredType === "webtransport" && !isWebTransportAvailable()) {
343
343
  throw new Error("WebTransport is not available in this environment");