@giaeulate/baas-sdk 1.0.7 → 1.0.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 CHANGED
@@ -914,7 +914,7 @@ var RealtimeService = class {
914
914
  reject(new Error("Missing authentication token for Realtime connection"));
915
915
  return;
916
916
  }
917
- const wsUrl = this.url.replace(/^http/, "ws") + "/ws";
917
+ const wsUrl = this.url.replace(/^http/, "ws") + "/api/ws";
918
918
  const fullUrl = this.apiKey ? `${wsUrl}?apikey=${this.apiKey}&token=${token}` : `${wsUrl}?token=${token}`;
919
919
  if (!this.wsConstructor) {
920
920
  reject(new Error("WebSocket constructor not provided or available in this environment"));
package/dist/index.js CHANGED
@@ -886,7 +886,7 @@ var RealtimeService = class {
886
886
  reject(new Error("Missing authentication token for Realtime connection"));
887
887
  return;
888
888
  }
889
- const wsUrl = this.url.replace(/^http/, "ws") + "/ws";
889
+ const wsUrl = this.url.replace(/^http/, "ws") + "/api/ws";
890
890
  const fullUrl = this.apiKey ? `${wsUrl}?apikey=${this.apiKey}&token=${token}` : `${wsUrl}?token=${token}`;
891
891
  if (!this.wsConstructor) {
892
892
  reject(new Error("WebSocket constructor not provided or available in this environment"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giaeulate/baas-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Standalone SDK for BaaS Golang",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",