mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 05:48:11 +00:00
przywrócenie komunikacji po WS (test)
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user