@nabeeltahirdeveloper/chart-sdk 2.0.6 → 2.1.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.
- package/dist/chart-sdk.es.js +5 -8
- package/dist/chart-sdk.umd.js +2 -2
- package/package.json +1 -1
package/dist/chart-sdk.es.js
CHANGED
|
@@ -10332,21 +10332,18 @@ function Hg() {
|
|
|
10332
10332
|
note: "Connecting to MT5 backend WebSocket (root namespace for candles)"
|
|
10333
10333
|
});
|
|
10334
10334
|
const e = ki(pe, {
|
|
10335
|
-
transports: ["
|
|
10335
|
+
transports: ["polling", "websocket"],
|
|
10336
|
+
// polling first: works through any proxy/nginx
|
|
10336
10337
|
reconnection: !0,
|
|
10337
10338
|
reconnectionDelay: 1e3,
|
|
10338
|
-
// Increased delay to avoid connection spam
|
|
10339
10339
|
reconnectionAttempts: 10,
|
|
10340
|
-
// Limited attempts
|
|
10341
10340
|
timeout: 15e3,
|
|
10342
|
-
// Increased timeout
|
|
10343
10341
|
forceNew: !1,
|
|
10344
|
-
withCredentials: !
|
|
10345
|
-
//
|
|
10342
|
+
withCredentials: !1,
|
|
10343
|
+
// false: allows server to use Access-Control-Allow-Origin: *
|
|
10346
10344
|
autoConnect: !0,
|
|
10347
10345
|
upgrade: !0,
|
|
10348
10346
|
auth: A ? { token: A } : void 0
|
|
10349
|
-
// Add auth token for MT5 backend
|
|
10350
10347
|
});
|
|
10351
10348
|
return e.on("connect", () => {
|
|
10352
10349
|
console.log("✅ [SOCKET DEBUG] SocketService: connected to ROOT namespace", {
|
|
@@ -16943,7 +16940,7 @@ const gb = xu(function({
|
|
|
16943
16940
|
} catch {
|
|
16944
16941
|
}
|
|
16945
16942
|
console.log(`📊 Fetching candles for ${q} @ ${iA}`);
|
|
16946
|
-
const U = Uu(iA), H = Fv(iA, U), M = ue || yv?.VITE_BASE_URL || "
|
|
16943
|
+
const U = Uu(iA), H = Fv(iA, U), M = ue || yv?.VITE_BASE_URL || "ws://localhost:8000", x = wt?.candles || "/api/chart/candles", N = mt?.candles || {}, AA = {
|
|
16947
16944
|
symbol: N.symbol || "symbol",
|
|
16948
16945
|
timeframe: N.timeframe || "timeframe",
|
|
16949
16946
|
limit: N.limit || "limit",
|