przywrócenie komunikacji po WS (test)

This commit is contained in:
2024-01-30 13:58:47 +01:00
parent f130e6900b
commit c7da8477fa
7 changed files with 286 additions and 253 deletions
+14
View File
@@ -0,0 +1,14 @@
import { io } from 'socket.io-client';
const URL =
import.meta.env.VITE_WS_MODE === 'development'
? 'http://localhost:3001'
: 'https://stacjownik.spythere.eu';
const socket = io(URL, {
transports: ['websocket', 'polling'],
rememberUpgrade: true,
reconnection: true
});
export default socket;