@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.
- package/dist/index.js +3 -1
- 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
|
-
|
|
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