@zaplier/sdk 1.1.7 → 1.1.8
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/sdk.js +4 -4
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.min.js +1 -1
- package/dist/src/modules/anti-adblock.d.ts +1 -1
- package/dist/src/modules/anti-adblock.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sdk.js
CHANGED
|
@@ -6382,9 +6382,9 @@
|
|
|
6382
6382
|
try {
|
|
6383
6383
|
// Use dynamic import to load socket.io-client only when needed
|
|
6384
6384
|
Promise.resolve().then(function () { return index; }).then(({ io }) => {
|
|
6385
|
-
// Extract domain from baseUrl - use
|
|
6385
|
+
// Extract domain from baseUrl - use HTTP for Socket.io connection
|
|
6386
6386
|
const url = new URL(this.baseUrl);
|
|
6387
|
-
const socketUrl =
|
|
6387
|
+
const socketUrl = `http://${url.host}`;
|
|
6388
6388
|
this.socket = io(socketUrl, {
|
|
6389
6389
|
transports: ['websocket', 'polling'],
|
|
6390
6390
|
timeout: 5000
|
|
@@ -6505,7 +6505,7 @@
|
|
|
6505
6505
|
this.baseUrl = baseUrl;
|
|
6506
6506
|
this.config = {
|
|
6507
6507
|
enabled: true,
|
|
6508
|
-
methods: ['socketio', 'fetch', '
|
|
6508
|
+
methods: ['socketio', 'fetch', 'resource'], // Socket.io as primary, removed native websocket
|
|
6509
6509
|
fallbackDelay: 100,
|
|
6510
6510
|
maxRetries: 2,
|
|
6511
6511
|
debug: false,
|
|
@@ -7763,7 +7763,7 @@
|
|
|
7763
7763
|
try {
|
|
7764
7764
|
this.antiAdblockManager = new AntiAdblockManager(this.config.apiEndpoint, {
|
|
7765
7765
|
enabled: true,
|
|
7766
|
-
methods: ["socketio", "fetch", "
|
|
7766
|
+
methods: ["socketio", "fetch", "resource"], // Socket.io as primary, removed native websocket
|
|
7767
7767
|
fallbackDelay: 100,
|
|
7768
7768
|
maxRetries: 2,
|
|
7769
7769
|
debug: this.config.debug,
|