Spaces:
Running
Running
Commit
·
33b3f87
1
Parent(s):
ef95618
fix: prefer WebSocket transport
Browse files
trigo-web/app/src/composables/useSocket.ts
CHANGED
|
@@ -31,7 +31,9 @@ export function useSocket() {
|
|
| 31 |
autoConnect: true,
|
| 32 |
reconnection: true,
|
| 33 |
reconnectionDelay: 1000,
|
| 34 |
-
reconnectionAttempts: 5
|
|
|
|
|
|
|
| 35 |
});
|
| 36 |
|
| 37 |
// Connection event handlers
|
|
|
|
| 31 |
autoConnect: true,
|
| 32 |
reconnection: true,
|
| 33 |
reconnectionDelay: 1000,
|
| 34 |
+
reconnectionAttempts: 5,
|
| 35 |
+
// Prefer WebSocket to avoid multi-replica issues with polling
|
| 36 |
+
transports: ["websocket", "polling"]
|
| 37 |
});
|
| 38 |
|
| 39 |
// Connection event handlers
|