astro-integration-pocketbase 2.1.10 → 2.1.11
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/package.json
CHANGED
|
@@ -136,8 +136,8 @@ async function handleConnectEvent(
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// Subscribe to the PocketBase realtime API
|
|
139
|
-
const
|
|
140
|
-
const result = await fetch(
|
|
139
|
+
const subscriptionUrl = new URL("api/realtime", options.url).href;
|
|
140
|
+
const result = await fetch(subscriptionUrl, {
|
|
141
141
|
method: "POST",
|
|
142
142
|
headers: {
|
|
143
143
|
"Content-Type": "application/json",
|