@wacht/jsx 1.0.0-beta.7 → 1.0.0-beta.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.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3031,12 +3031,12 @@ function fp({
|
|
|
3031
3031
|
if (!e || u || f || !l || !d)
|
|
3032
3032
|
return;
|
|
3033
3033
|
A();
|
|
3034
|
-
const B = new URL(d.backend_host), F = B.protocol === "https:" ? "wss:" : "ws:", N = new URL("/
|
|
3034
|
+
const B = new URL(d.backend_host), F = B.protocol === "https:" ? "wss:" : "ws:", N = new URL("/notifications/stream", `${F}//${B.host}`);
|
|
3035
3035
|
if (d.mode === "staging") {
|
|
3036
3036
|
const O = ur(d.backend_host);
|
|
3037
3037
|
O && N.searchParams.set("__dev_session__", O);
|
|
3038
3038
|
}
|
|
3039
|
-
R.current && R.current.length > 0 &&
|
|
3039
|
+
R.current && R.current.length > 0 && N.searchParams.set("channels", R.current.join(",")), w.current && w.current.length > 0 && N.searchParams.set("organization_ids", w.current.join(",")), S.current && S.current.length > 0 && N.searchParams.set("workspace_ids", S.current.join(","));
|
|
3040
3040
|
try {
|
|
3041
3041
|
const O = new WebSocket(N.toString());
|
|
3042
3042
|
z.current = O, O.onopen = () => {
|