import {io} from "socket.io-client";

const socketOptions = {
    transport: ['polling', 'websocket'],
    pingInterval: 25000, // PING every 25 seconds
    pingTimeout: 60000 // Timeout if no PONG in 60 seconds
}
export const socket = io(import.meta.env.VITE_WS_URL || undefined, socketOptions)
