import { io } from 'socket.io-client'; // "undefined" means the URL will be computed from the window.location object const URL = process.env.NODE_ENV === 'production' ? 'http://192.168.0.131:4000' : 'http://192.168.0.131:4000'; export const socket = io(URL);