@statezero/core 0.2.59 → 0.2.60

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.
@@ -1088,7 +1088,7 @@ class Fs {
1088
1088
  authEndpoint: s.authEndpoint,
1089
1089
  auth: { headers: s.getAuthHeaders?.() || {} }
1090
1090
  };
1091
- s.wsHost ? (l.wsHost = s.wsHost, l.wsPort = s.wsPort ?? 443, l.wssPort = s.wssPort ?? 443, l.enabledTransports = s.enabledTransports ?? ["ws", "wss"]) : l.cluster = s.cluster, this.pusherClient = new ys(s.appKey, l), this.pusherClient.connection.bind("connected", () => {
1091
+ s.wsHost ? (l.wsHost = s.wsHost, l.wsPort = s.wsPort ?? 443, l.wssPort = s.wssPort ?? 443, l.enabledTransports = s.enabledTransports ?? ["ws", "wss"], l.cluster = "") : l.cluster = s.cluster, this.pusherClient = new ys(s.appKey, l), this.pusherClient.connection.bind("connected", () => {
1092
1092
  console.log(
1093
1093
  `Pusher client connected successfully for backend: ${this.configKey}.`
1094
1094
  ), this.connectionTimeoutId && (clearTimeout(this.connectionTimeoutId), this.connectionTimeoutId = null);
@@ -85,6 +85,7 @@ export class PusherEventReceiver {
85
85
  pusherOpts.wsPort = clientOptions.wsPort ?? 443;
86
86
  pusherOpts.wssPort = clientOptions.wssPort ?? 443;
87
87
  pusherOpts.enabledTransports = clientOptions.enabledTransports ?? ['ws', 'wss'];
88
+ pusherOpts.cluster = "";
88
89
  }
89
90
  else {
90
91
  pusherOpts.cluster = clientOptions.cluster;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statezero/core",
3
- "version": "0.2.59",
3
+ "version": "0.2.60",
4
4
  "type": "module",
5
5
  "module": "ESNext",
6
6
  "description": "The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate",