@coasys/ad4m-connect 0.13.0-postmessage-ws-proxy.3 → 0.13.0-postmessage-ws-proxy.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.
package/dist/index.js CHANGED
@@ -11225,13 +11225,17 @@ var Ad4mConnect = class extends EventTarget {
11225
11225
  throw new Error("AD4M proxy mode requires a non-opaque parent origin. Ensure the host iframe is not sandboxed without allow-same-origin.");
11226
11226
  }
11227
11227
  const parentOrigin = event.origin;
11228
- const wsImpl = (url) => new PostMessageWebSocket(url, parentOrigin);
11228
+ class WsImpl extends PostMessageWebSocket {
11229
+ constructor(url) {
11230
+ super(url, parentOrigin);
11231
+ }
11232
+ }
11229
11233
  this.notifyConnectionChange("connecting");
11230
11234
  this.ad4mClient = new Ad4mClient(
11231
11235
  "http://proxy",
11232
11236
  normalizedToken,
11233
11237
  false,
11234
- { webSocketImpl: wsImpl }
11238
+ { webSocketImpl: WsImpl }
11235
11239
  );
11236
11240
  this.notifyConnectionChange("connected");
11237
11241
  yield this.checkAuth();