@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.esm.js CHANGED
@@ -6376,9 +6376,9 @@ class SocketIOTransport {
6376
6376
  try {
6377
6377
  // Use dynamic import to load socket.io-client only when needed
6378
6378
  Promise.resolve().then(function () { return index; }).then(({ io }) => {
6379
- // Extract domain from baseUrl - use same port as main API
6379
+ // Extract domain from baseUrl - use HTTP for Socket.io connection
6380
6380
  const url = new URL(this.baseUrl);
6381
- const socketUrl = `${url.protocol}//${url.host}`;
6381
+ const socketUrl = `http://${url.host}`;
6382
6382
  this.socket = io(socketUrl, {
6383
6383
  transports: ['websocket', 'polling'],
6384
6384
  timeout: 5000
@@ -6499,7 +6499,7 @@ class AntiAdblockManager {
6499
6499
  this.baseUrl = baseUrl;
6500
6500
  this.config = {
6501
6501
  enabled: true,
6502
- methods: ['socketio', 'fetch', 'websocket', 'resource'], // Socket.io as primary
6502
+ methods: ['socketio', 'fetch', 'resource'], // Socket.io as primary, removed native websocket
6503
6503
  fallbackDelay: 100,
6504
6504
  maxRetries: 2,
6505
6505
  debug: false,
@@ -7757,7 +7757,7 @@ class ZaplierSDK {
7757
7757
  try {
7758
7758
  this.antiAdblockManager = new AntiAdblockManager(this.config.apiEndpoint, {
7759
7759
  enabled: true,
7760
- methods: ["socketio", "fetch", "websocket", "resource"], // Socket.io as primary
7760
+ methods: ["socketio", "fetch", "resource"], // Socket.io as primary, removed native websocket
7761
7761
  fallbackDelay: 100,
7762
7762
  maxRetries: 2,
7763
7763
  debug: this.config.debug,