@nivaro/sdk 0.1.22 → 0.1.23

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1836,7 +1836,9 @@ function createRealtime() {
1836
1836
  path: "/socket.io",
1837
1837
  auth: token ? { token } : void 0,
1838
1838
  withCredentials: true,
1839
- transports: ["websocket"]
1839
+ // Websocket first; when a proxy blocks the upgrade, long-polling on the same attempt.
1840
+ transports: ["websocket", "polling"],
1841
+ tryAllTransports: true
1840
1842
  });
1841
1843
  socket.on("connect", () => {
1842
1844
  for (const fn of connectHandlers) fn();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "TypeScript SDK for Nivaro CMS — typed REST client, GraphQL, realtime subscriptions, and presence.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",