@aiqa/sdk 2.0.0-develop.3 → 2.0.0-develop.4

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.
@@ -3397,7 +3397,7 @@ var compareVersions = (left, right) => {
3397
3397
  // package.json
3398
3398
  var package_default = {
3399
3399
  name: "@aiqa/sdk",
3400
- version: "2.0.0-develop.2",
3400
+ version: "2.0.0-develop.3",
3401
3401
  main: "dist/node/node.js",
3402
3402
  module: "dist/node/node.js",
3403
3403
  types: "dist/node/node.d.ts",
@@ -3623,7 +3623,14 @@ var AiQaSdk = class {
3623
3623
  const url2 = new URL(this.url);
3624
3624
  const socketOptions = {
3625
3625
  reconnectionDelayMax: 1e4,
3626
- path: url2.pathname
3626
+ path: url2.pathname,
3627
+ // WebSocket only, skipping engine.io's default HTTP long-polling phase.
3628
+ // Some embedders sit behind proxies/security gateways that duplicate the
3629
+ // polling GETs across a fleet; the concurrent polls violate engine.io's
3630
+ // one-inflight-poll-per-session rule and tear the session down, so every
3631
+ // poll then returns "Session ID unknown" (HTTP 400) and the client never
3632
+ // authenticates. A single WebSocket has no repeated requests to duplicate.
3633
+ transports: ["websocket"]
3627
3634
  };
3628
3635
  this.socket = lookup2(url2.origin, socketOptions);
3629
3636
  this.socket.on("connect", () => {