@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/core.js +6 -2
- package/dist/core.js.map +2 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -11136,13 +11136,17 @@ var Ad4mConnect = class extends EventTarget {
|
|
|
11136
11136
|
throw new Error("AD4M proxy mode requires a non-opaque parent origin. Ensure the host iframe is not sandboxed without allow-same-origin.");
|
|
11137
11137
|
}
|
|
11138
11138
|
const parentOrigin = event.origin;
|
|
11139
|
-
|
|
11139
|
+
class WsImpl extends PostMessageWebSocket {
|
|
11140
|
+
constructor(url) {
|
|
11141
|
+
super(url, parentOrigin);
|
|
11142
|
+
}
|
|
11143
|
+
}
|
|
11140
11144
|
this.notifyConnectionChange("connecting");
|
|
11141
11145
|
this.ad4mClient = new Ad4mClient(
|
|
11142
11146
|
"http://proxy",
|
|
11143
11147
|
normalizedToken,
|
|
11144
11148
|
false,
|
|
11145
|
-
{ webSocketImpl:
|
|
11149
|
+
{ webSocketImpl: WsImpl }
|
|
11146
11150
|
);
|
|
11147
11151
|
this.notifyConnectionChange("connected");
|
|
11148
11152
|
yield this.checkAuth();
|